Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CSV writer - no output??
#6
The script reads the metadata from the .jpg, this is shown below
I have to use 'a', If I use 'w' it overwrites and I only get one row, not 100 rows.

The issue is each row is exported to three rows, NOT one row.
I should get:
C:\opt\data\image.jpg, 38.10264166666666, -84.483105

The csv writes out:
C:\opt\data\image.jpg
38.10264166666666
-84.483105

Thanks
Clive
Reply


Messages In This Thread
CSV writer - no output?? - by Clives - Mar-28-2022, 05:25 PM
RE: CSV writer - no output?? - by Larz60+ - Mar-28-2022, 06:43 PM
RE: CSV writer - no output?? - by Clives - Mar-29-2022, 01:23 PM
RE: CSV writer - no output?? - by Clives - Mar-29-2022, 01:44 PM
RE: CSV writer - no output?? - by Larz60+ - Mar-29-2022, 03:09 PM
RE: CSV writer - no output?? - by Clives - Mar-30-2022, 03:51 PM
RE: CSV writer - no output?? - by Clives - Mar-30-2022, 04:09 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Csv writer meaning of quoting mg24 2 1,297 Oct-01-2022, 02:16 PM
Last Post: Gribouillis
  [split] NameError: name 'csvwriter' is not defined. Did you mean: 'writer'? cathy12 4 3,659 Sep-01-2022, 07:41 PM
Last Post: deanhystad
Sad pandas writer create "corrupted" file freko75 1 3,061 Jun-14-2022, 09:57 PM
Last Post: snippsat
  Closing Files - CSV Reader/Writer lummers 2 2,757 May-28-2020, 06:36 AM
Last Post: Knight18

Forum Jump:

User Panel Messages

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