Skip to content

Instantly share code, notes, and snippets.

@quantra-go-algo
Last active June 2, 2022 14:36
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/0c559c92144d728bf03c52386700eaa8 to your computer and use it in GitHub Desktop.
Save quantra-go-algo/0c559c92144d728bf03c52386700eaa8 to your computer and use it in GitHub Desktop.
# Reading the data
data = pd.read_csv('BTC_2021-02-04.csv', names=['Date_Time', 'LTP', 'LTQ', 'Exchage Code'], index_col=0)
# Convert the index to datetime
data.index = pd.to_datetime(data.index, format='%Y-%m-%d %H:%M:%S:%f')
# Print the last 5 rows
data.head()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment