Jul-20-2024, 01:24 AM
Greetings,
I am loading in my chosen files of a special format from a folder I read in and then converted these files to dataframes. I want to store each of these files somewhere, along with some details from it. For example:
column 1 would be named 'data files' and the entries would be the loaded in files
column 2 would be named 'shares' and the entries would be some calculated values I did elsewhere in the code
column 3 would be named 'file contents' and the entries would be the contents of the files (now dataframes)
Thanks a bunch. I don't think I am keen on dictionaries since I can't easily give the columns names that aren't "key" or "value"
What is the best way to achieve this?
I am loading in my chosen files of a special format from a folder I read in and then converted these files to dataframes. I want to store each of these files somewhere, along with some details from it. For example:
column 1 would be named 'data files' and the entries would be the loaded in files
column 2 would be named 'shares' and the entries would be some calculated values I did elsewhere in the code
column 3 would be named 'file contents' and the entries would be the contents of the files (now dataframes)
Thanks a bunch. I don't think I am keen on dictionaries since I can't easily give the columns names that aren't "key" or "value"
What is the best way to achieve this?