Sep-24-2020, 08:54 PM
(Sep-21-2020, 01:32 AM)CEC68 Wrote: besides static reading process like I have above?
Do you mean hard coded file names to be processed?
If I understood you correctly, you want to find all *.csv files in a specific folder/subfolders and load them one-by-one (and do something with data). The following code snippet could help you to do this:
import os for root, dirs, files in os.walk("C:/Data"): for name in files: if name.endswith('csv'): data = pd.read_csv(os.path.join(root, name)) # do something with data...