Skip to content
Advertisement

How to insert data into a specific cell in csv with python?

I am trying to insert data into a specific cell in csv. My code is as follows.

The existing file.

enter image description here

Output

The data in cell A1(“Custmor”) is replaced with new data(“Name”).

enter image description here

My code is as follows.

JavaScript

And it doesn’t work. Please help me finding the bug.

Advertisement

Answer

Customer is column header, you need do

JavaScript
User contributions licensed under: CC BY-SA
2 People found this is helpful
Advertisement