I am having a hard time figuring this out. I am working on a program to keep track of some data associated with a bunch of files. I am using pandas to manage the data and load/save it. For the first run, the program identifies the files with the extension, and creates a pandas dataframe with some number of columns for the data associated with each file. The number of columns and the number of rows isn't known until runtime. I want to add all the file paths to a column, but leave all other columns blank for the DataFrame, is there a good way to do this? So if the input is [val1, val2, val3,...] then I want the DataFrame to be
[col1, col2, col,...,coln]
[val1, NaN, NaN,..., NaN]
[val2, NaN, NaN,..., NaN]
[val3, NaN, NaN,..., NaN]
Thanks for any help!