Finance Project Flashcards

1
Q

start = datetime.datetime(2006, 1, 1)
end = datetime.datetime(2016, 1, 1)

A

Sukuriama pradzios data ir pabaigos

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

from pandas_datareader import data, wb
import pandas as pd
import numpy as np
import datetime
%matplotlib inline

A

Reikalingos bibliotekos

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

BAC = web.DataReader(“BAC”, ‘yahoo’, start, end)

A

Istraukiame dataframe is web

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

bank_stocks = pd.concat([BAC, C, GS, JPM, MS, WFC],axis=1,keys=tickers)

A

Sujungiami duomenys

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

bank_stocks.xs(key=’Close’,axis=1,level=’Stock Info’).max()

A

Isfiltruojama didziausia akcijos kaina

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

for tick in tickers:
returns[tick+’ Return’] = bank_stocks[tick][‘Close’].pct_change()
returns.head()

A
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

.xs

A

Naudojama to grab information from specific columns

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

import seaborn as sns
sns.pairplot(returns[1:])

A

Sukuriamas pairplot

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

returns.idxmin()

A

Isfiltruoja kai stock turejo didziausia drop

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

returns.idxmax()

A

Isfiltruoja kai stock turedejo didziausia gain

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

returns = pd.DataFrame()

A

Sukuriame empty data frame

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

returns.ix[‘2015-01-01’:’2015-12-31’].std()

A

Grazina tu dienu standart deviation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

sns.distplot(returns.ix[‘2015-01-01’:’2015-12-31’][‘MS Return’],color=’green’,bins=100)

A

Sukuria distplot

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

import matplotlib.pyplot as plt
import seaborn as sns
sns.set_style(‘whitegrid’)
%matplotlib inline

Optional Plotly Method Imports
import plotly
import cufflinks as cf
cf.go_offline()

A

Importuojamas vizualizaciju bibliotekos

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

for tick in tickers:
bank_stocks[tick][‘Close’].plot(figsize=(12,4),label=tick)
plt.legend()

A

Sukuria stocku kainu diagrama

How well did you know this?
1
Not at all
2
3
4
5
Perfectly