-
-
Notifications
You must be signed in to change notification settings - Fork 18.6k
DOC: Fix heading capitalization in doc/source/whatsnew - part5 (#32550) #33568
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
DOC: Fix heading capitalization in doc/source/whatsnew - part5 (#32550) #33568
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good; a few minor nits
doc/source/whatsnew/v0.19.0.rst
Outdated
@@ -37,8 +37,8 @@ New features | |||
|
|||
.. _whatsnew_0190.enhancements.asof_merge: | |||
|
|||
``merge_asof`` for asof-style time-series joining | |||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |||
Method ``merge_asof`` for asof-style time-Series joining |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Method ``merge_asof`` for asof-style time-Series joining | |
Function ``merge_asof`` for asof-style time-Series joining |
doc/source/whatsnew/v0.19.0.rst
Outdated
@@ -863,8 +863,8 @@ Furthermore: | |||
``Period`` changes | |||
^^^^^^^^^^^^^^^^^^ | |||
|
|||
``PeriodIndex`` now has ``period`` dtype | |||
"""""""""""""""""""""""""""""""""""""""" | |||
Method ``PeriodIndex`` now has ``Period`` dtype |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Method ``PeriodIndex`` now has ``Period`` dtype | |
The ``PeriodIndex`` now has ``Period`` dtype |
Minor edit as not a method
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oups I didn't see it was a class
doc/source/whatsnew/v0.19.0.rst
Outdated
@@ -1151,8 +1151,8 @@ As a consequence, ``groupby`` and ``set_index`` also preserve categorical dtypes | |||
|
|||
.. _whatsnew_0190.api.autogenerated_chunksize_index: | |||
|
|||
``read_csv`` will progressively enumerate chunks | |||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |||
Method ``read_csv`` will progressively enumerate chunks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Method ``read_csv`` will progressively enumerate chunks | |
Function ``read_csv`` will progressively enumerate chunks |
doc/source/whatsnew/v0.20.0.rst
Outdated
@@ -1351,7 +1351,7 @@ Using ``.iloc``. Here we will get the location of the 'A' column, then use *posi | |||
|
|||
.. _whatsnew_0200.api_breaking.deprecate_panel: | |||
|
|||
Deprecate Panel | |||
Deprecate panel |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think Panel should still be uppercase
…y_doc/source/whatsnew5
Ok changes made as requested. |
…pts/validate_rst_title_capitalization.py'
doc/source/whatsnew/v0.19.0.rst
Outdated
@@ -731,8 +731,8 @@ A ``Series`` will now correctly promote its dtype for assignment with incompat v | |||
|
|||
.. _whatsnew_0190.api.to_datetime_coerce: | |||
|
|||
``.to_datetime()`` changes | |||
^^^^^^^^^^^^^^^^^^^^^^^^^^ | |||
Method ``.to_datetime()`` changes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@datapythonista should this be Function instead of Method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I think so.
Commenter does not have sufficient privileges for PR 33568 in repo pandas-dev/pandas |
@jbrockmendel @WillAyd I made the change |
…y_doc/source/whatsnew5
doc/source/whatsnew/v0.18.1.rst
Outdated
@@ -61,8 +61,8 @@ Tuesday after MLK Day (Monday is skipped because it's a holiday) | |||
|
|||
.. _whatsnew_0181.deferred_ops: | |||
|
|||
``.groupby(..)`` syntax with window and resample operations | |||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |||
Method ``.GroupBy(..)`` syntax with window and resample operations |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Method ``.GroupBy(..)`` syntax with window and resample operations | |
Method ``.groupby(..)`` syntax with window and resample operations |
If referring to the method should stick with .groupby
The class can be capitalized
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok but we need to change the algorithm in validate_rst_title_capitalization, because at the moment, every word 'groupby' will be seen as an exception, and needed to be capitalised like 'GroupBy'.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you leave these .groupby
methods in lower case. Not sure what's the best solution here, it needs to be GroupBy
when it's a class, and groupby
when it's a method. And making the script be happy with both is not trivial, the way it is implemented.
So, let's leave them correct for now, even if we can't add the validation to this file, and see what we do with the script. If you can open an issue for this case, that would be great. You can tag me on the issue. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ok, I will switch back to .groupby
and I will open an issue! And try to propose a solution when I can spend some time on it.
@@ -306,8 +306,8 @@ API changes | |||
|
|||
.. _whatsnew_0181.api.groubynth: | |||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the changes. Looks good, there are few other cases that we need to allow two variants.
The problem with the current implementation is that we get the "right" of writing the title to show to the user. But if we need to allow two variants, there is no right way anymore, so I guess we'll have to get rid of that feature, and just validate that incorrectly capitalized words are not in the list of exceptions.
For this PR, if you can just restore the cases I mentioned, we can get this merged. If you want to create an issue for the problem, or work on a separate PR that fixes it, that would be great.
Thanks a lot for the work on this!
doc/source/whatsnew/v0.19.0.rst
Outdated
@@ -37,8 +37,8 @@ New features | |||
|
|||
.. _whatsnew_0190.enhancements.asof_merge: | |||
|
|||
``merge_asof`` for asof-style time-series joining | |||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |||
Function ``merge_asof`` for asof-style time-Series joining |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do you mind restoring series here? This one is not referring to the class
doc/source/whatsnew/v0.19.0.rst
Outdated
@@ -127,8 +127,8 @@ passed DataFrame (``trades`` in this case), with the fields of the ``quotes`` me | |||
|
|||
.. _whatsnew_0190.enhancements.rolling_ts: | |||
|
|||
``.rolling()`` is now time-series aware | |||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |||
Method ``.rolling()`` is now time-Series aware |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same
doc/source/whatsnew/v0.19.0.rst
Outdated
@@ -863,8 +863,8 @@ Furthermore: | |||
``Period`` changes | |||
^^^^^^^^^^^^^^^^^^ | |||
|
|||
``PeriodIndex`` now has ``period`` dtype | |||
"""""""""""""""""""""""""""""""""""""""" | |||
The ``PeriodIndex`` now has ``Period`` dtype |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think period is another one that will have to allow both period and Period. Can you use period lower case here please?
doc/source/whatsnew/v0.19.0.rst
Outdated
@@ -1078,7 +1078,7 @@ Previously, most ``Index`` classes returned ``np.ndarray``, and ``DatetimeIndex` | |||
|
|||
.. _whatsnew_0190.api.multiindex: | |||
|
|||
``MultiIndex`` constructors, ``groupby`` and ``set_index`` preserve categorical dtypes | |||
``MultiIndex`` constructors, ``groupby`` and ``set_index`` preserve Categorical dtypes |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
same here for categorical, better lower case
doc/source/whatsnew/v0.21.0.rst
Outdated
@@ -115,8 +115,8 @@ Setting a list-like data structure into a new attribute now raises a ``UserWarni | |||
|
|||
.. _whatsnew_0210.enhancements.drop_api: | |||
|
|||
``drop`` now also accepts index/columns keywords | |||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |||
Method ``drop`` now also accepts Index/columns keywords |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think index here doesn't refer to the class either, if you can restore it
…y_doc/source/whatsnew5
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @cleconte987 for all the work in this, lgtm
…y_doc/source/whatsnew5
…y_doc/source/whatsnew5
I don't understand what is going wrong during the checks |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @cleconte987 nice work. The CI is green, I guess you already fixed the problems you mentioned.
No I just merged master and pushed, updated PR, and it worked this time. It happened several times that checks failed and I have no idea why it happens. Maybe server issues, server load or server busy I don't understand why is it failing. |
Thanks @cleconte987 |
-Quite a lot of complicated issues here, need reviewing. Such as 'Groupby' transformed to 'GroupBy', 'I/O' to 'IO', and some others.
-File v0.20.0.rst has bad file name as it is actually talking about version v0.20.1.rst