Python Forum

Full Version: Graph Plotting Help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Good afternoon All

I am looking for some advice and guidance on possible exploratory data analysis graphs (and code to plot, am new at python) that I can plot for some internet clicks data that I have.

I have a column with users (1500 rows), of which 249 are unique values. I have another column which contains the date and time (in a datetimestamp format) when the user clicked (I am not interested in the date, its only the time that I am interested in).

I have been asked to analyse the relationship between the users and the time.

What sort of graph can I plot to illustrate this relationships.

Another quirk is that the data was imported as a csv fie, so the date and time column is currently of the type "object)

Thank you very much

Talch
see: https://matplotlib.org/api/pyplot_api.ht....plot_date
Note that the date and time that you have will need to be converted to python datetime objects,
this can be done with datetime.strptime, see: https://pymotw.com/3/datetime/
and then convert to date2num https://matplotlib.org/2.0.0/api/dates_api.html to convert to matplotlib format.