suppose I have a file/directory in which many .csv files are present and I have a python code that can read only one csv file and do some algorithm and store the output in an another csv file.Now I need to update that python code so that we can check the file/directory and store the output of the all csv files(which are present inside the directory) in different csv files.
if anyone can help me , please do.
use
os.listdir()
it will give u list of all files in specified directory
now u can read each csv file coz u hav their complete path
1 Like