まとめ

Intermediate Python for Finance

Kennedy Behrman

Data Engineer, Author, Founder

第1章

  • 時間の表現

datetime

  • データの対応付け

dict()

Intermediate Python for Finance

第2章

  • 比較演算子

< <= > >=

  • 等価演算子

== !=

  • ブール演算子

and or not

  • if 文
if a < b:
   print(a)
  • ループ
while a < b:
     a = a + 1
for a in c:
    print(a)
Intermediate Python for Finance

第3章

  • DataFrame の作成
DataFrame(data=data)
pd.read_csv('/data.csv')
  • データアクセス
stocks.loc['a', 'Values']
stocks.iloc[2:22, 12]
  • 集計・要約
stocks.mean()
stocks.median()
  • 拡張・操作
pce['PCESV'] = pcesv
gdp.apply(np.sum, axis=1)
Intermediate Python for Finance

第4章

  • 先頭・末尾の確認
aapl.head()
aapl.tail()
aapl.describe()
  • フィルタリング
mask = prices.High > 216
prices.loc[mask]
  • プロット
exxon.plot(x='Date', 
           y='High' )
Intermediate Python for Finance

おめでとうございます!

Intermediate Python for Finance

Preparing Video For Download...