Skip to content
Navigation Menu
Toggle navigation
Sign in
Appearance settings
Platform
GitHub Copilot
Write better code with AI
GitHub Spark
New
Build and deploy intelligent apps
GitHub Models
New
Manage and compare prompts
GitHub Advanced Security
Find and fix vulnerabilities
Actions
Automate any workflow
Codespaces
Instant dev environments
Issues
Plan and track work
Code Review
Manage code changes
Discussions
Collaborate outside of code
Code Search
Find more, search less
Explore
Why GitHub
Documentation
GitHub Skills
Blog
Integrations
GitHub Marketplace
MCP Registry
View all features
Solutions
By company size
Enterprises
Small and medium teams
Startups
Nonprofits
By use case
App Modernization
DevSecOps
DevOps
CI/CD
View all use cases
By industry
Healthcare
Financial services
Manufacturing
Government
View all industries
View all solutions
Resources
Topics
AI
DevOps
Security
Software Development
View all
Explore
Learning Pathways
Events & Webinars
Ebooks & Whitepapers
Customer Stories
Partners
Executive Insights
Open Source
GitHub Sponsors
Fund open source developers
The ReadME Project
GitHub community articles
Repositories
Topics
Trending
Collections
Enterprise
Enterprise platform
AI-powered developer platform
Available add-ons
GitHub Advanced Security
Enterprise-grade security features
Copilot for business
Enterprise-grade AI features
Premium Support
Enterprise-grade 24/7 support
Pricing
state:open label:Sorting
Search code, repositories, users, issues, pull requests...
Search syntax tips
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Sign in
Sign up
Appearance settings
Resetting focus
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
{{ message }}
pandas-dev
/
pandas
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
19.3k
Star
47.2k
Code
Issues
3.4k
Pull requests
204
Actions
Projects
0
Security
Uh oh!
There was an error while loading.
Please reload this page
.
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Projects
Security
Insights
Information for new contributors
#49275 ·
noatamir
opened
on Oct 24, 2022
9
Issues
Search Issues
state
:
open
label
:
Sorting
state:open label:Sorting
Search
Labels
Milestones
New issue
Search results
Open
Closed
ENH: make sorting algorithm options to <code>value_counts</code> and record it in the docs
Algos
Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff
Non-arithmetic algos: value_counts, factorize, sorting, isin, clip, shift, diff
Enhancement
Sorting
e.g. sort_index, sort_values
e.g. sort_index, sort_values
Status: Open.
#63155
In pandas-dev/pandas;
·
cmp0xff
opened
on Nov 19, 2025
DOC: clarify that <code>value_counts</code>, <code>sort_values</code>, <code>sort_index</code> etc. are deterministic
Docs
Sorting
e.g. sort_index, sort_values
e.g. sort_index, sort_values
Status: Open.
#63154
In pandas-dev/pandas;
·
cmp0xff
opened
on Nov 19, 2025
BUG: <code>sort_index</code> failing on MultiIndex with label name when key is used
Bug
MultiIndex
Sorting
e.g. sort_index, sort_values
e.g. sort_index, sort_values
Status: Open.
#62361
In pandas-dev/pandas;
·
ldouteau
opened
on Sep 17, 2025
ENH: Added <code>DataFrame.nsorted</code> to select top <code>n</code> rows according to column-dependent order
Enhancement
Sorting
e.g. sort_index, sort_values
e.g. sort_index, sort_values
Status: Open (in progress).
pandas-dev/pandas
number 61457
#61457
In pandas-dev/pandas;
·
MartinBraquet
opened
on May 19, 2025
BUG: remove_unused_levels does not keep index levels order
Bug
MultiIndex
Needs Discussion
Requires discussion from core team before further action
Requires discussion from core team before further action
Sorting
e.g. sort_index, sort_values
e.g. sort_index, sort_values
Status: Open.
#61245
In pandas-dev/pandas;
·
mathman79
opened
on Apr 7, 2025
ENH: Enable nsmallest/nlargest on object dtype
Enhancement
Filters
e.g. head, tail, nth
e.g. head, tail, nth
Sorting
e.g. sort_index, sort_values
e.g. sort_index, sort_values
Status: Open.
#61166
In pandas-dev/pandas;
·
Gri72
opened
on Mar 22, 2025
BUG: <code>sort_values</code> is sorting the index too when <code>ignore_index=False</code>
Bug
Sorting
e.g. sort_index, sort_values
e.g. sort_index, sort_values
Status: Open.
#57531
In pandas-dev/pandas;
·
galipremsagar
opened
on Feb 20, 2024
ENH: Better documentation or default behavior for GroupBy for columns with non-sortable values
Enhancement
Groupby
Needs Discussion
Requires discussion from core team before further action
Requires discussion from core team before further action
Sorting
e.g. sort_index, sort_values
e.g. sort_index, sort_values
Status: Open.
#57525
In pandas-dev/pandas;
·
gabuzi
opened
on Feb 20, 2024
BUG: <code>sort_values</code> should have consistent behavior irrespective of the number of sort columns
Bug
Sorting
e.g. sort_index, sort_values
e.g. sort_index, sort_values
Status: Open.
#57312
In pandas-dev/pandas;
·
arpit-goel
opened
on Feb 9, 2024
BUG: sort_values raises error about null categorical values when no categorical types are used
Arrow
pyarrow functionality
pyarrow functionality
Bug
Sorting
e.g. sort_index, sort_values
e.g. sort_index, sort_values
Status: Open.
#54908
In pandas-dev/pandas;
·
rohanjain101
opened
on Aug 31, 2023
BUG: groupby sort issue when using rolling
Bug
Groupby
Sorting
e.g. sort_index, sort_values
e.g. sort_index, sort_values
Window
rolling, ewma, expanding
rolling, ewma, expanding
Status: Open.
#50296
In pandas-dev/pandas;
·
domjanbaric
opened
on Dec 16, 2022
You can’t perform that action at this time.