-
-
Notifications
You must be signed in to change notification settings - Fork 18.5k
Docs issue for pd.concat #41518
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
Comments
Thanks for the report @softwaredevPK! Since the docs and all the type hints along this path specify Seems like an easy fix would be to use pandas/pandas/util/_validators.py Line 213 in 059c8ba
to explicitly disallow None as an input
|
@mzeitlin11 would you be ok with raising a FutureWarning in 1.3 to remove the None behavior in 2.0? The Message kinda suggests that None may be a valid input (which doesn‘t really makes sense of course, but I don‘t know how people use this) |
With colleague of mine we performed few tests to check if there is any difference between sort=None vs sort=False vs sort=True. So in my opinion none shouldn't be allowed ;-) |
Sounds good to me! |
Hi,
I was recently updating my pandas from 0.24.2 to 1.1.5 and future warning informed me that default value for sort has changed from None to False. It said that to present current behavior I should change it to sort=True. After i updated my package, I checked if sort=None is still accessible and it is, while docs says it accepts only bool.
May I understand that I can still use sort=None to present old behavior? Or should it be depreciated and raise Error?
The text was updated successfully, but these errors were encountered: