I want to graph a pandas data frame named vslr (414 rows, 2 columns, but the graph I am getting is unusable.
The command I am using to plot:
plt.plot(vslr['Price'],vslr['Date'])
My data:
print(vslr.head)
Date Price
0 2020-01-31 15:30:00 8.1653
1 2020-01-31 14:30:00 8.2087
2 2020-01-31 13:30:00 8.1753
3 2020-01-31 12:30:00 8.1551
4 2020-01-31 11:30:00 8.0903
.. ... ...
409 2019-11-05 13:30:00 6.8452
410 2019-11-05 12:30:00 6.8050
411 2019-11-05 11:30:00 6.7600
412 2019-11-05 10:30:00 6.7553
413 2019-11-05 09:30:00 6.6502
vslr.info()
<class 'pandas.core.frame.DataFrame'>
RangeIndex: 414 entries, 0 to 413
Data columns (total 2 columns):
Date 414 non-null object
Price 414 non-null object
dtypes: object(2)
memory usage: 6.6+ KB
Help is appreciated :)