Skip to content

WEB: Sort PDEPs by their number #52072

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

Merged
merged 10 commits into from
May 22, 2023
Merged

Conversation

kostyafarber
Copy link
Contributor

@kostyafarber kostyafarber commented Mar 19, 2023

Sort PDEPs by their number rather than the title.

Copy link
Member

@datapythonista datapythonista left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @kostyafarber. The approach seems fine, I think it's the best. I added a couple of minor comments about the implenentation.

@mroeschke mroeschke added the Web pandas website label Mar 20, 2023
@kostyafarber
Copy link
Contributor Author

@datapythonista thx for review. New commit has the suggested changes.

@kostyafarber
Copy link
Contributor Author

@datapythonista thx for review. New commit has the suggested changes.

@datapythonista being a pest :)

Copy link
Member

@datapythonista datapythonista left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @kostyafarber, very nice. Looks great, my only concern is that if one of the sorted issues doesn't use PDEP-\d... as the title, I think this will fail with an error difficult to debug. I'm in my phone and can't check in detail, but let me know if I'm wrong. If I'm correct, maybe we can move the lambda to a function (can be inside the same function) and raise our own exception and error message when the pattern is not found. Thanks!

@kostyafarber
Copy link
Contributor Author

Thanks @kostyafarber, very nice. Looks great, my only concern is that if one of the sorted issues doesn't use PDEP-\d... as the title, I think this will fail with an error difficult to debug. I'm in my phone and can't check in detail, but let me know if I'm wrong. If I'm correct, maybe we can move the lambda to a function (can be inside the same function) and raise our own exception and error message when the pattern is not found. Thanks!

No worries, I think that's a sensible concern, I'll investigate and let you know.

@kostyafarber
Copy link
Contributor Author

@datapythonista re-wrote to raise when we don't get a match with (useful) msg. Cheers

@kostyafarber
Copy link
Contributor Author

@datapythonista friendly ping.

Copy link
Member

@datapythonista datapythonista left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you @kostyafarber, I added couple of final suggestions, but looks good.

Copy link
Member

@datapythonista datapythonista left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @kostyafarber, looks perfect. I'll leave this open a bit to see if another core dev can have a look, bit will be merge soon if nobody does.

@datapythonista
Copy link
Member

/preview

@github-actions
Copy link
Contributor

github-actions bot commented May 9, 2023

Website preview of this PR available at: https://pandas.pydata.org/preview/52072/

@mroeschke mroeschke added this to the 2.1 milestone May 22, 2023
@mroeschke mroeschke merged commit 3e913c2 into pandas-dev:main May 22, 2023
@mroeschke
Copy link
Member

Thanks @kostyafarber

topper-123 pushed a commit to topper-123/pandas that referenced this pull request May 22, 2023
* WEB: Sort PDEPs by their number

* change regex string and call match method on compiled pattern

* WEB: add exception handling when title is missing number

* WEB: parameter to sort_pdep should be a dict. Change func parameter type to dict

* move pattern into function call, less verbose
Daquisu pushed a commit to Daquisu/pandas that referenced this pull request Jul 8, 2023
* WEB: Sort PDEPs by their number

* change regex string and call match method on compiled pattern

* WEB: add exception handling when title is missing number

* WEB: parameter to sort_pdep should be a dict. Change func parameter type to dict

* move pattern into function call, less verbose
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Web pandas website
Projects
None yet
Development

Successfully merging this pull request may close these issues.

WEB: Sorting of PDEPs
3 participants