I am trying to create a pandas DataFrame and it works fine for a single file. If I need to build it for multiple files which have the same data structure. So instead of single file name I have a list of file names from which I would like to create the DataFrame.
Not sure what’s the way to append to current DataFrame in pandas or is there a way for pandas to suck a list of files into a DataFrame.
The pandas
concatcommand is your friend here. Lets say you have all you files in a directory, targetdir. You can:`