-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
BUG: Regression in sort_index with ascending=None #39434
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
The same is true for Series.sort_index(...). |
I would not know what output to expect with |
we should be validating the ascending arg type as boolean - it's possible we r not |
As I see, |
moving to 1.2.3 |
first bad commit: [aa43f17] REF: nargsort incorrectly calling _values_for_argsort (#37266)
@ivanovmg an alternative could be to restore the old behaviour for 1.2.x and repurpose #39451 for 1.3 and then can advertise the 'breaking change', which is permissible since the usage is incorrect. |
no i think we should just fix this - the. new is wrong |
@jreback @simonjayhawkins |
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
(optional) I have confirmed this bug exists on the master branch of pandas.
Note: Please read this guide detailing how to provide the necessary information for us to reproduce your bug.
Code Sample, a copy-pastable example
Problem description
There was no such issue in pandas version 1.1.5
Output of
pd.show_versions()
pandas : 1.2.1
numpy : 1.19.5
pytz : 2020.5
dateutil : 2.8.1
pip : 20.3.3
setuptools : 51.1.2.post20210112
Cython : None
pytest : 6.2.1
hypothesis : None
sphinx : None
blosc : None
feather : 0.4.1
xlsxwriter : None
lxml.etree : 4.6.2
html5lib : None
pymysql : None
psycopg2 : None
jinja2 : 2.11.2
IPython : 7.12.0
pandas_datareader: None
bs4 : 4.9.3
bottleneck : None
fsspec : 0.8.3
fastparquet : None
gcsfs : None
matplotlib : 3.2.2
numexpr : 2.7.2
odfpy : None
openpyxl : 3.0.6
pandas_gbq : None
pyarrow : 2.0.0
pyxlsb : None
s3fs : 0.5.2
scipy : 1.6.0
sqlalchemy : 1.3.22
tables : 3.6.1
tabulate : None
xarray : 0.16.2
xlrd : 2.0.1
xlwt : None
numba : None
The text was updated successfully, but these errors were encountered: