处理原始数据集

Python 金融预测

Victoria Clark

CGMA Financial Analyst

获取用于预测的数据集

  • 特斯拉汽车公司(Tesla Motors Inc.)
  • 公开的历史信息
  • 利润表为 .csv

特斯拉标志

Python 金融预测

初看数据

特斯拉利润表

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)

特斯拉筛选后利润表

Python 金融预测

让我们来练习!

Python 金融预测

Preparing Video For Download...