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: Index.format is deprecated #10180

Open
hcho3 opened this issue Apr 13, 2024 · 0 comments
Open

Pandas 2.2: Index.format is deprecated #10180

hcho3 opened this issue Apr 13, 2024 · 0 comments

Comments

@hcho3
Copy link
Collaborator

hcho3 commented Apr 13, 2024

This line

feature_names = data.columns.format()

produces the following warning with Pandas 2.2:

xgboost/data.py:942: FutureWarning: Index.format is deprecated and will be removed in a future version.
Convert using index.astype(str) or index.map(formatter) instead.

The deprecation was introduced in pandas-dev/pandas#55439

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