處理原始資料集

使用 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...