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

05a-01-NEW Recipe Future Syntax Change #795

Open
cleorose opened this issue Feb 14, 2025 · 0 comments
Open

05a-01-NEW Recipe Future Syntax Change #795

cleorose opened this issue Feb 14, 2025 · 0 comments
Assignees
Labels
code Writing code for recipes, tutorials, scripts

Comments

@cleorose
Copy link
Contributor

The "Reformat Temporal Coverage and get the Date Range" cell in the 05a-01-NEW recipe produced this error/warning:

"C:\Users\cleor\AppData\Local\Temp\ipykernel_20516\1791833297.py:9: FutureWarning: A value is trying to be set on a copy of a DataFrame or Series through chained assignment using an inplace method.
The behavior will change in pandas 3.0. This inplace method will never work because the intermediate object on which we are setting values always behaves as a copy.

For example, when doing 'df[col].method(value, inplace=True)', try using 'df.method({col: value}, inplace=True)' or df[col] = df[col].method(value) instead, to perform the operation inplace on the original object.

df['Temporal Coverage'].replace('NaT', pd.NA, inplace=True)"

@github-project-automation github-project-automation bot moved this to Backlog in Collections Feb 14, 2025
@cleorose cleorose added the code Writing code for recipes, tutorials, scripts label Feb 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
code Writing code for recipes, tutorials, scripts
Projects
Status: Backlog
Development

No branches or pull requests

2 participants