Python Forum
Printing x values from an csv file
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Printing x values from an csv file
#1
I am using a .csv file with measurements. On the first column of the .csv file there are timestamps, such as this:
01/24/2021 12:45 PM
(after 100 measurements)
02/25/2021 04:34 PM
. . .
etc.

On the 2nd column there are some numbers. When I plot the data I need to put x values something. Can it put automatically the date time for every lets say 100 measurements, on x axis? Is there any better way? From here: https://matplotlib.org/3.3.3/api/_as_gen....plot.html
I tried:

plot('date', 'visitors', data=obj)
but does not seem to work...on x values it prints me numbers from 0 to 2000, with step 200.
Reply


Messages In This Thread
Printing x values from an csv file - by hobbyist - Jan-28-2021, 05:03 PM
RE: Printing x values from an csv file - by nilamo - Jan-30-2021, 04:39 PM
RE: Printing x values from an csv file - by nilamo - Feb-02-2021, 04:35 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Printing out incidence values for Class Object SquderDragon 3 424 Apr-01-2024, 07:52 AM
Last Post: SquderDragon
  Printing specific values out from a dictionary mcoliver88 6 1,537 Apr-12-2023, 08:10 PM
Last Post: deanhystad
  Modify values in XML file by data from text file (without parsing) Paqqno 2 1,818 Apr-13-2022, 06:02 AM
Last Post: Paqqno
  Overwrite values in XML file with values from another XML file Paqqno 5 3,522 Apr-01-2022, 11:33 PM
Last Post: Larz60+
  How to split file by same values from column from imported CSV file? Paqqno 5 2,938 Mar-24-2022, 05:25 PM
Last Post: Paqqno
  Problem with sum of values from .txt file PathhK 2 2,649 Jan-07-2019, 07:40 PM
Last Post: nilamo
  Printing lines in a basic text file Drone4four 6 4,002 Aug-16-2018, 03:10 PM
Last Post: snippsat
  Printing from a text file not working as I thought it would PythonZenon 10 6,313 Jun-02-2018, 09:19 PM
Last Post: snippsat
  printing a text file by python and thermal printer gray 6 20,954 Jul-30-2017, 05:56 AM
Last Post: buran
  trying to get the keystrokes values to file rwahdan 2 4,056 Jul-14-2017, 06:53 PM
Last Post: rwahdan

Forum Jump:

User Panel Messages

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