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

Pandas 2.2+ FutureWarning: Deprecated automatic downcasting #102

Open
mephinet opened this issue Mar 27, 2024 · 0 comments
Open

Pandas 2.2+ FutureWarning: Deprecated automatic downcasting #102

mephinet opened this issue Mar 27, 2024 · 0 comments

Comments

@mephinet
Copy link
Contributor

When using the latest gspread-pandas version 3.3.0 with latest pandas version 2.2.1, the following FutureWarning is raised:

.../site-packages/gspread_pandas/spread.py:401: FutureWarning: Downcasting behavior in replace is deprecated and will be removed in a future version. To retain the old behavior, explicitly call result.infer_objects(copy=False). To opt-in to the future behavior, set pd.set_option('future.no_silent_downcasting', True)
.replace("", np.nan)

For details, see https://pandas.pydata.org/docs/whatsnew/v2.2.0.html#deprecated-automatic-downcasting

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

No branches or pull requests

1 participant