Advertisement
Guest User

Untitled

a guest
Sep 18th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. # read csv file
  2. raw_asset_prices_df = pd.read_csv("asset_prices.csv", index_col='Date')
  3.  
  4. # get number of rows and columns of the dataset
  5. df_shape = (raw_asset_prices_df.shape)
  6. print(f"There are {df_shape[0]} rows and {df_shape[1]} columns in the dataset")
  7. print(f"Data timeperiod covers: {min(raw_asset_prices_df.index)} to {max(raw_asset_prices_df.index)}")
  8.  
  9. # show first five rows
  10. raw_asset_prices_df.head()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement