0

Python code for rename files name using import csv files

Python code for rename files name using import csv files

10th Dec 2019, 8:47 AM
Shanmuga Sundaram
Shanmuga Sundaram - avatar
1 Respuesta
+ 2
I have understand that you like to rename a file, but it's not clear for me what you mean with ... import csv file. May be you can rework your question a bit? Here some info about renaming in python: How to rename a file: import os, then use os.rename('old name', 'new name') You can also use move to rename a file: import shutil, then use shutil.move('old name', 'new name') If the file you want to rename is not in your current directory, you also need to include the path name for source and detsination file. In any case I would strictly recommend you to read the python docs because there also may be a downside and risk when performing file operations !!!!
10th Dec 2019, 10:37 AM
Lothar
Lothar - avatar