-
Notifications
You must be signed in to change notification settings - Fork 0
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
MultipleSeries to dataframe #13
Comments
I take Deborah's point that this will be impossible to do for general cases, because each paleo spreadsheet is a bit of a snowflake. However, the reverse is possible: |
So
|
Addressed by LinkedEarth/Pyleoclim_util#335 |
addressed by #350 |
Generalizing the creation of Series objects from a dataFrame would be very helpful. See Dry_Tortugas.ipynb for an example: currently we create different Series manually (one per dataframe column), but it would be very helpful to have a
pyleo.MultipleSeries
methods calledfrom_pandas()
that would take the following arguments:metadata can be inferred from the spreadsheet columns (e.g. a string in parentheses is likely to be the
value_unit
of the corresponding Series, like "mmol/mol" in this example; the string preceding that parenthesis ("Sr/Ca" in this example) will be thevalue_name
of the corresponding Series, or thename
of the pd.Series created from that column of the DataFrame. Similarly, metadata for the time variable (particularly the all-importanttime_unit
) can be inferred from the header ofdf.iloc[:,time_col]
.The method should return a MultipleSeries object (i.e. a list of
pyleo.Series
objects).The text was updated successfully, but these errors were encountered: