Skip to content

Instantly share code, notes, and snippets.

@caiobvilar
Created December 3, 2019 14:02
Show Gist options
  • Save caiobvilar/03c343431487117f9b044234420a9727 to your computer and use it in GitHub Desktop.
Save caiobvilar/03c343431487117f9b044234420a9727 to your computer and use it in GitHub Desktop.
df_hist.to_csv('LMT_stock.csv')
df_hist[['Year','Month','Day']] = df_hist['Date'].str.split('-',3,expand=True)
df_hist = df_hist.drop('Date',axis=1)
df_hist = df_hist.apply(pd.to_numeric)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment