Here is my code:
import matplotlib.pyplot as plt
fig = plt.figure(figsize=(12,8))
plt.xlabel('Time')
plt.ylabel('Number of Spared Bikes')
plt.plot(needs.index, needs['110'], label='#101')
plt.show()
What I need is a dataframe:
with this code, I got this graph:
As you can see the graph above, x axis looks awful.
I just want to make x axis by time
index, not 2017-09-08 06:00
, but just like 06
.
How can I solve this problem?