Python Forum
How can I copy specif cell from one csv to another csv
Thread Rating:
  • 1 Vote(s) - 2 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How can I copy specif cell from one csv to another csv
#2
I'm not sure exactly what you are trying to do, and your code is confusing. However, to handle numbers, you need to change ca_rows[row][-2] on line 22 to str(ca_rows[row][-2]). That will convert the numbers to strings so you can write them. The reason it is writing to the fourth column is that you are putting four blank columns before it ([" "]*3). Change the 3 to a 5 (like King Arthur), and that will put it in the sixth column.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
RE: How can I copy specif cell from one csv to another csv - by ichabod801 - Jan-13-2019, 09:27 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Why is the copy method name in python list copy and not `__copy__`? YouHoGeon 2 317 Apr-04-2024, 01:18 AM
Last Post: YouHoGeon
  Need to copy column of cell values from one workbook to another with openpyxl curranjohn46 3 11,310 Oct-12-2019, 10:57 PM
Last Post: curranjohn46
  using openpyxl copy the value of a cell, not the formula Pedroski55 3 31,223 Jan-07-2018, 11:44 PM
Last Post: Pedroski55

Forum Jump:

User Panel Messages

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