-
Notifications
You must be signed in to change notification settings - Fork 19
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
Picking columns to export CSV #260
Conversation
fd2e03a
to
438be02
Compare
Made a change according to idea from @ilectra and @pineapple-cat . Instead of adding a new "*_axis" to the One question would be is it required to apply user-specified types to all relevant columns for the csv export too ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't think we need user-specified types for csv export columns; typing is only needed for the parts of the dataframe that will be used in data manipulation in some way. Since what you want to add is purely for display purposes, it shouldn't make much difference once it's in the csv anyway.
I think that, instead of creating a whole new df to export to csv, it would make more sense if you
|
That's a great idea! I will try to implement this in a new commit |
@kaanolgu you might want to wait for the refactoring PR to be merged. It will change things quite a bit, hopefully to the better! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please also add unit tests for the new functionality!
post-processing/post_processing.py
Outdated
|
||
# gather all relevant columns | ||
all_columns = set(columns + filter_columns + scaling_columns) | ||
return self.df[config.plot_columns][self.mask] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume this mess here is leftover from the merging with the refactored version?
Save output csv in current folder, independent of perflog path Update docs and example yaml
@pineapple-cat @kaanolgu I think I addressed all my review comments, please have a last look and merge if happy! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Everything seems to be in order to me 👍
Fixes #252
self.plot_generic( config["title"], df[columns][mask], config["x_axis"], config["y_axis"], series_filters)
[thanks @pineapple-cat ] ) :Is there any alternative method to export multiple columns that I might be missing ? Open to any feedback or suggestions
Thank you!