Skip to content
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

Avoid using df.sqeeze() for getting main df series #216

Conversation

ricardogsilva
Copy link

This PR implements a different way to retrieve the main series for a datasets returned by THREDDS in the time series endpoint. The current implementation is relying on the pandas df.squeeze() method, which can return either a pd.Series or a scalar. Returning a scalar happens in our case for those datasets which only have a single time, as is the case for all 30-year anomaly datasets.


This can return either a pd.Series or a scalar when there is only a single row of data, which happens for datasets which are the aggregation of 30 years
@ricardogsilva ricardogsilva marked this pull request as ready for review August 30, 2024 11:56
@francbartoli francbartoli merged commit 18cef7f into geobeyond:main Aug 30, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

unable to get a coverage time series for 30 year datasets
2 participants