生データセットの操作

Pythonで学ぶファイナンシャル・フォーキャスティング

Victoria Clark

CGMA Financial Analyst

予測用データセットの取得

  • Tesla Motors Inc.
  • 公開されている過去の情報
  • 損益計算書(.csv形式)

TeslaLogo

Pythonで学ぶファイナンシャル・フォーキャスティング

最初の確認

TeslaIS

Pythonで学ぶファイナンシャル・フォーキャスティング

Pythonでのデータフィルタリング

# Choose some interesting metrics
interesting_metrics = ['Gross profit', 'Net income']
# Using the .isin() method, filter for rows containing these metrics
filter = income_statement.metric.isin(interesting_metrics)
filtered_income_statement = income_statement[filter]

print(filtered_income_statement)

TeslaISFiltered

Pythonで学ぶファイナンシャル・フォーキャスティング

練習しましょう!

Pythonで学ぶファイナンシャル・フォーキャスティング

Preparing Video For Download...