current position:Home>Can pandas directly modify CSV or excel original files and save them

Can pandas directly modify CSV or excel original files and save them

2022-02-03 01:37:56 CSDN Q & A

Python A little white , Excuse me, pandas The library can be directly to the original csv/Excel Do you want to modify and save the file , All I know now is to read the original file data , Modify and write to a new file before saving




Refer to the answer 1:

B: yes, you can , You can write the saved file name as the original file name




Refer to the answer 2:



Refer to the answer 3:

Don't you read it out and save it again ? There is no direct change ? Change directly, unless it is to read their specific file format and modify the specific bytes of binary files .




Refer to the answer 4:

copyright notice
author[CSDN Q & A],Please bring the original link to reprint, thank you.
https://en.primo.wiki/2022/02/202202030137541349.html

Random recommended