Skip to content

Instantly share code, notes, and snippets.

@julian-west
Created September 7, 2019 16:48
Show Gist options
  • Save julian-west/5a37d92139eb3ab18b0d24534552d08c to your computer and use it in GitHub Desktop.
Save julian-west/5a37d92139eb3ab18b0d24534552d08c to your computer and use it in GitHub Desktop.
# read csv file
raw_asset_prices_df = pd.read_csv("asset_prices.csv", index_col='Date')
# get number of rows and columns of the dataset
df_shape = (raw_asset_prices_df.shape)
print(f"There are {df_shape[0]} rows and {df_shape[1]} columns in the dataset")
print(f"Data timeperiod covers: {min(raw_asset_prices_df.index)} to {max(raw_asset_prices_df.index)}")
# show first five rows
raw_asset_prices_df.head()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment