Skip to content

Instantly share code, notes, and snippets.

@quantra-go-algo
Created August 24, 2021 12:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quantra-go-algo/00f37c1f79339cdb3bf7763b70c62f8a to your computer and use it in GitHub Desktop.
Save quantra-go-algo/00f37c1f79339cdb3bf7763b70c62f8a to your computer and use it in GitHub Desktop.
Create dataframe
####################################################
## Create a dataframe with X's (spy, pep, usdx) and Y (ko)
df = pd.concat([spy_df['spy'], ko_df['ko'],
pep_df['pep'], usdx_df['usdx']], axis = 1).dropna()
## Save the csv file. Good practice to save data files after initial processing
df.to_csv("Jul2021_data_lin_regression.csv")
####################################################
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment