Skip to content

String dtype: remove fallback Perfomance warnings for string methods #59760

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

Conversation

jorisvandenbossche
Copy link
Member

Closes #58581

The current PR simply removes the warning altogether, but now we have the "mode.performance_warnings" option, we could in theory also keep the warnings as long as they are not enabled by default.
However, the performance warnings option right now is still on by default. So if we want to do this right now (keep the string fallback warnings but not enabled by default), we would need to change that default to something like None which then means True/False depending on the case .. (cc @rhshadrach)

xref #54792

@jorisvandenbossche jorisvandenbossche added the Strings String extension data type and string data label Sep 9, 2024
@mroeschke mroeschke added this to the 2.3 milestone Sep 9, 2024
@rhshadrach
Copy link
Member

My preference would be a simple Boolean show all vs show none (ref: #55385 (comment)). In any case, showing warnings when the user has no viable path of better performance doesn't seem appropriate. This looks good to me.

@jorisvandenbossche
Copy link
Member Author

OK, sounds good, let's then simply remove those for now.

@jorisvandenbossche jorisvandenbossche merged commit de51d33 into pandas-dev:main Sep 10, 2024
47 checks passed
@jorisvandenbossche jorisvandenbossche deleted the string-dtype-remove-fallback-perf-warnings branch September 10, 2024 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backported Strings String extension data type and string data
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Default string dtype should not raise fallback performance warnings
3 participants