The DataFrame data
, where date
is an index look like:
date count
2017-03-20 119
2017-03-29 100
2017-04-03 118
2017-04-10 113
date
(index) has a format datetime64[ns]
.
When i try to plot it with
p = data.plot(kind="bar")
,
it adds hours:minuts:seconds to the axis values(to dates). So, when i save it with
fig = p.get_figure()
fig.savefig('figure.jpeg'),
The frame cuts off days,month,yeear and leaves only zeros from minuts,seconds...