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

fix pandas v2.2 FutureWarning #1538

Merged
merged 4 commits into from Feb 19, 2024
Merged

Conversation

t-kalinowski
Copy link
Member

Pandas 2.2 emits a warning when using the Index.format() method, which is used by reticulate py_to_r conversion routines. This PR updates usage from index.format() to list(index.astype(str))

sys:1: FutureWarning: Index.format is deprecated and will be removed in a future version. Convert using index.astype(str) or index.map(formatter) instead.

closes #1537

t-kalinowski and others added 4 commits February 16, 2024 10:46
sys:1: FutureWarning: Index.format is deprecated and will be removed in a future version. Convert using index.astype(str) or index.map(formatter) instead.

closes #1537
Otherwise, tests fail on Python <= 3.7
@t-kalinowski t-kalinowski merged commit a2c5f5d into main Feb 19, 2024
12 checks 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.

Unsilenceable Index.format deprecation warning with pandas 2.2
1 participant