Skip to content

Instantly share code, notes, and snippets.

@sid321axn
Created August 26, 2020 04:08
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 sid321axn/c8597cff661948b118875fbdf1e19b70 to your computer and use it in GitHub Desktop.
Save sid321axn/c8597cff661948b118875fbdf1e19b70 to your computer and use it in GitHub Desktop.
#reading dataset
exchange_data = pd.read_csv('forex_data_10y.csv')
#converting date column to datetime
exchange_data["Date"] = pd.to_datetime(exchange_data["Date"])
# setting date column to index of dataframe while dropping the current index
ind_exchange_data = exchange_data.set_index(["Date"], drop=True)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment