osdir.com


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How to plot a data including date and time?


On Tuesday, August 13, 2019 at 11:47:28 PM UTC+2, amirrezah... at gmail.com wrote:
> I have a .csv file, in first column I have date and hour, and in the second column I have energy use data. How can I make a bar chart with Date and time as the x axis and the energy use as the Y axis?
> 
> Thanks

Thank you for your guidance. I am already using matplotlib but I do not know how to import a column of date and time and to use it properly as the x axis. can you tell me the code?


Thanks