0

I want to plot a line chart with timestamp and values, but even thought my timestamp column in is datetime format, when I plot it, it won't show the date information like yyyy-mm-dd, but only the time.

enter image description here

The code I used to plot:

fig, ax = plt.subplots()
plt.plot('timestamp', 'values', data=df, marker='', markerfacecolor='blue', markersize=1, color='skyblue', linewidth=1)

The axis looks like below with no date information.

enter image description here

efsee
  • 579
  • 1
  • 10
  • 22

0 Answers0