Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Prepend Row to CSV file.
#3
Hey, thanks for the reply.

The reason I wanted to add data at the start was I waned to plot the last 24 data points on a graph. There was a limitation of the graphing plugin that it you can only list a specific range of data, rather than specify the last x rows. If I had put the data in top down, I could just specify the first 24 rows to get the newest data.

After you said that it is more complex to add data at the start, I just changed the Python script to append the data on the end, then write a second file which is an extract of the last 24 lines. I can now graph all data and the last 24 points separately.

Thanks for your help.
Reply


Messages In This Thread
Prepend Row to CSV file. - by KAD_UK - Sep-24-2019, 10:03 PM
RE: Prepend Row to CSV file. - by ichabod801 - Sep-24-2019, 10:24 PM
RE: Prepend Row to CSV file. - by KAD_UK - Sep-25-2019, 07:41 PM

Forum Jump:

User Panel Messages

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