I'm starting out as a Research Assistant at a lab at UMD and I am having trouble with the coding aspect of the work. I am running python 2.7.12 w/ Anaconda 4.2.0. I was given a text file with the task of reading it into python and graphing it using matplotlib. The text file is in this format
20170109 001203 379.00 22824.13 1.00
where the last two columns can be ignored, the first is the date, the second is the time in HH:MM:SS
. and the third column is ppm (parts per million)
.
I have been able to read the data into python but have not figured out how to differentiate the first two columns as dates and times. I am thinking of doing something using datetime but am not sure what inputs I should use. From there I would like to plot the data with time (both yyyy MMM dddd
and HH MM SS
) on the x-axis, and ppm on the y-axis, using matplotlib through numpy.