Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Graph Plotting Help
#1
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
Reply
#2
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.
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation Error when plotting a graph. Oshadha 3 3,637 Mar-14-2022, 06:47 PM
Last Post: deanhystad
  Plotting simple graph (AttributeError) Laplace12 0 1,369 Jul-28-2021, 10:58 AM
Last Post: Laplace12
  Graph not plotting Hass 1 1,952 Sep-14-2019, 09:52 AM
Last Post: luoheng
  Plotting number on graph william888 1 1,706 Sep-02-2019, 02:36 AM
Last Post: scidam

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020