-
Notifications
You must be signed in to change notification settings - Fork 234
Session.virtualfile_to_dataset: Add new parameters 'dtype'/'index_col' for pandas output #3140
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
Conversation
| self, | ||
| vfname: str, | ||
| output_type: Literal["pandas", "numpy", "file"] = "pandas", | ||
| column_names: list[str] | None = None, |
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.
In Session.virtualfile_to_dataset, do we want to rename column_names to names?
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.
Done in f211b7d.
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 kinda prefer column_names, we don't necessarily need to follow pd.read_csv here.
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.
Do you mean using column_names in both GMT_DATASET.to_dataframe and Session.virtualfile_to_dataset?
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.
Yes, i.e. revert f211b7d
9f67844 to
4554e63
Compare
f211b7d to
a3d7768
Compare
Co-authored-by: Yvonne Fröhlich <[email protected]>
…s' to 'names'" This reverts commit a3d7768.
f11dc89 to
abda146
Compare
Address #3131 (comment).
Changes in this PR:
GMT_DATASET.to_dataframe: Add new parametersnames/dtype/index_colSession.virtualfile_to_dataset: AAdd new parameterdtype/index_coland renamecolumn_namestonamesThe parameter names
names/dtype/index_colare very close to the ones in thepd.read_csvfunction.