Title: Improve sorting on DataFrame · Issue #215 · PolyMathOrg/DataFrame · GitHub
Open Graph Title: Improve sorting on DataFrame · Issue #215 · PolyMathOrg/DataFrame
X Title: Improve sorting on DataFrame · Issue #215 · PolyMathOrg/DataFrame
Description: Currently, we don't support multiColumn sorting. For example let's use this data as example: https://www.kaggle.com/datasets/prashant111/the-simpsons-dataset?resource=download I have this DataFrame that I want to sort by season and by ep...
Open Graph Description: Currently, we don't support multiColumn sorting. For example let's use this data as example: https://www.kaggle.com/datasets/prashant111/the-simpsons-dataset?resource=download I have this DataFrame...
X Description: Currently, we don't support multiColumn sorting. For example let's use this data as example: https://www.kaggle.com/datasets/prashant111/the-simpsons-dataset?resource=download I have this D...
Opengraph URL: https://github.com/PolyMathOrg/DataFrame/issues/215
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Improve sorting on DataFrame","articleBody":"Currently, we don't support multiColumn sorting. For example let's use this data as example: https://www.kaggle.com/datasets/prashant111/the-simpsons-dataset?resource=download\r\n\r\nI have this DataFrame that I want to sort by season and by episode\r\n\r\n\r\nTo sort it by season and by episode I need to do this:\r\n\r\n```st\r\ndf\r\n sortBy: #number_in_season;\r\n sortBy: #season\r\n```\r\n\r\nIf I do it the other way around, first season and then the episode it does not work.\r\n\r\nThis raise the question that we need a better api and mechanism to sort a dataframe. Some options can be:\r\n\r\nWith ChainedSortFunction\r\n```st\r\ndf sortBy: #season ascending, #number_in_season ascending\r\n```\r\n\r\nOr more pandas like: https://pandas.pydata.org/docs/reference/api/pandas.DataFrame.sort_values.html\r\n```st\r\ndf sortValuesDescending: ( #season #number_in_season)\r\ndf sortValuesAscending: ( #season #number_in_season)\r\n```\r\n\r\nAlso we need to add the `sorted` methods that return a new DataFrame.","author":{"url":"https://github.com/jordanmontt","@type":"Person","name":"jordanmontt"},"datePublished":"2023-04-11T13:11:50.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/215/DataFrame/issues/215"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b10950e5-4950-82b8-b2a3-2f038786b5aa |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BA64:16D1F8:1A90FA:22D211:697F66CC |
| html-safe-nonce | 647e0d3bac04e64aa17583ad66e917ada3c7969d48a0679a9594181771598558 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTY0OjE2RDFGODoxQTkwRkE6MjJEMjExOjY5N0Y2NkNDIiwidmlzaXRvcl9pZCI6Ijg4NDEwMTM0NzcwNDE0NjUwMzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1f5ad7e85de2f2d6a356b6bdff178eebd220bc2c0cbd9cc56ddfdf50521e84e1 |
| hovercard-subject-tag | issue:1662455425 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/PolyMathOrg/DataFrame/215/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6a859dc44350f7ab7e93d51d5a7a8e2a0b71db74b7e3fd3acc4289ec1b2ae4a2/PolyMathOrg/DataFrame/issues/215 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6a859dc44350f7ab7e93d51d5a7a8e2a0b71db74b7e3fd3acc4289ec1b2ae4a2/PolyMathOrg/DataFrame/issues/215 |
| og:image:alt | Currently, we don't support multiColumn sorting. For example let's use this data as example: https://www.kaggle.com/datasets/prashant111/the-simpsons-dataset?resource=download I have this DataFrame... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | jordanmontt |
| hostname | github.com |
| expected-hostname | github.com |
| None | 60279d4097367e16897439d16d6bbe4180663db828c666eeed2656988ffe59f6 |
| turbo-cache-control | no-preview |
| go-import | github.com/PolyMathOrg/DataFrame git https://github.com/PolyMathOrg/DataFrame.git |
| octolytics-dimension-user_id | 17797985 |
| octolytics-dimension-user_login | PolyMathOrg |
| octolytics-dimension-repository_id | 90879489 |
| octolytics-dimension-repository_nwo | PolyMathOrg/DataFrame |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 90879489 |
| octolytics-dimension-repository_network_root_nwo | PolyMathOrg/DataFrame |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7c85641c598ad130c74f7bcc27f58575cac69551 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width