-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is it possible to merge csv files? #2
Comments
Hi. I haven't looked at this package in a while but iirc "merging individual files into experiments" refers to
extension = 'csv'
all_filenames = [i for i in glob.glob('*.{}'.format(extension))]
#combine all files in the list
combined_csv = pd.concat([pd.read_csv(f) for f in all_filenames ], axis=1)
# Check if it has the expect number of rows and columns
print(combined_csv.shape) By-the-by: I did reformat your above message into code using three ticks (`) before and after the code block. |
Hello, thanks for your answer. Yes, I wanted to combine data from experiments with the same conditions. In case someone is having a similar issue here is what i did:
Then I deleted the extra rows (using Text to Columns function)
The file could be opened with pyfim now. Thanks for your help. |
Hello, I want to use this package for my masters thesis.
In the description it said, that it is possible to Merge individual files into experiments but I was not able to find out how. I tried merging csv files into one combined file with: (found online)
But it didnt work out because I found a different amount of objects in my pyfim experiment after that. Also the csv files were only like stacked on top of each other and I don't think they are usable in that way.
Is there another way, to merge objects from different csv files into one experiment?
The text was updated successfully, but these errors were encountered: