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

Using pandas 2.1.1 gives warning with altair for apply with convert_dtype #3197

Closed
rikardn opened this issue Sep 21, 2023 · 4 comments
Closed
Labels

Comments

@rikardn
Copy link
Contributor

rikardn commented Sep 21, 2023

pandas 2.1.1 has deprecated the convert_dtype option to apply triggering a warning from altair:

.tox/py311/lib/python3.11/site-packages/altair/utils/core.py:410: in sanitize_dataframe
    col = df[col_name].apply(to_list_if_array, convert_dtype=False)
.tox/py311/lib/python3.11/site-packages/pandas/core/series.py:4753: in apply
    return SeriesApply(
.tox/py311/lib/python3.11/site-packages/pandas/core/apply.py:1170: in __init__
    warnings.warn(
E   FutureWarning: the convert_dtype parameter is deprecated and will be removed in a future version.  Do ``ser.astype(object).apply()`` instead if you want ``convert_dty
pe=False``.
@rikardn rikardn added the bug label Sep 21, 2023
@joelostblom
Copy link
Contributor

Thanks for the report! This was merged in #3191 and will be available in the next release of altair.

@rikardn
Copy link
Contributor Author

rikardn commented Sep 22, 2023

Thanks!

@EwoutH
Copy link

EwoutH commented Oct 24, 2023

Thanks for fixing this! When is a new release expected that includes this change?

@mattijn
Copy link
Contributor

mattijn commented Oct 24, 2023

This is already released in version 5.1.2, see https://github.com/altair-viz/altair/releases/tag/v5.1.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants