You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
phofl
added
Algos
Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff
and removed
Needs Triage
Issue that has not been reviewed by a pandas team member
labels
Nov 29, 2023
Pandas version checks
I have checked that this issue has not already been reported.
I have confirmed this bug exists on the latest version of pandas.
I have confirmed this bug exists on the main branch of pandas.
Reproducible Example
Issue Description
Natural sorting works as expected with
Series
:Expecting that
Index
behaves the same, but it raises an exception:Expected Behavior
Expecting that
key=natsort_key
works the same inIndex.sort_values
andSeries.sort_values
.As a workaround, this works, but seems unnecessarily verbose:
Installed Versions
The text was updated successfully, but these errors were encountered: