Skip to content

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

Merged
merged 14 commits into from
May 6, 2020

Conversation

cleconte987
Copy link
Contributor

-Quite a lot of complicated issues here, need reviewing. Such as 'Groupby' transformed to 'GroupBy', 'I/O' to 'IO', and some others.

  • Modify files v0.18.0.rst, v0.18.1.rst, v0.19.0.rst, v0.19.1.rst, v0.19.2.rst, v0.20.0.rst, v0.20.2.rst, v0.20.3.rst, v0.21.0.rst, v0.21.1.rst

-File v0.20.0.rst has bad file name as it is actually talking about version v0.20.1.rst

Copy link
Member

@WillAyd WillAyd left a 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

@@ -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
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Method ``merge_asof`` for asof-style time-Series joining
Function ``merge_asof`` for asof-style time-Series joining

@@ -863,8 +863,8 @@ Furthermore:
``Period`` changes
^^^^^^^^^^^^^^^^^^

``PeriodIndex`` now has ``period`` dtype
""""""""""""""""""""""""""""""""""""""""
Method ``PeriodIndex`` now has ``Period`` dtype
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Method ``PeriodIndex`` now has ``Period`` dtype
The ``PeriodIndex`` now has ``Period`` dtype

Minor edit as not a method

Copy link
Contributor Author

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

@@ -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
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
Method ``read_csv`` will progressively enumerate chunks
Function ``read_csv`` will progressively enumerate chunks

@@ -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
Copy link
Member

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

@WillAyd WillAyd added the Docs label Apr 15, 2020
@cleconte987
Copy link
Contributor Author

Looks good; a few minor nits

Ok changes made as requested.

@jreback jreback added this to the 1.1 milestone Apr 16, 2020
@@ -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
Copy link
Member

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?

Copy link
Member

Choose a reason for hiding this comment

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

Yes, I think so.

@azure-pipelines
Copy link
Contributor

Commenter does not have sufficient privileges for PR 33568 in repo pandas-dev/pandas

@cleconte987
Copy link
Contributor Author

cleconte987 commented Apr 19, 2020

@jbrockmendel @WillAyd I made the change

@@ -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
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
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

Copy link
Contributor Author

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'.

Copy link
Member

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!

Copy link
Contributor Author

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:

Copy link
Member

Choose a reason for hiding this comment

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

Same here

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 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!

@@ -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
Copy link
Member

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

@@ -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
Copy link
Member

Choose a reason for hiding this comment

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

same

@@ -863,8 +863,8 @@ Furthermore:
``Period`` changes
^^^^^^^^^^^^^^^^^^

``PeriodIndex`` now has ``period`` dtype
""""""""""""""""""""""""""""""""""""""""
The ``PeriodIndex`` now has ``Period`` dtype
Copy link
Member

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?

@@ -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
Copy link
Member

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

@@ -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
Copy link
Member

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

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 @cleconte987 for all the work in this, lgtm

@cleconte987 cleconte987 requested a review from WillAyd May 5, 2020 16:06
@cleconte987
Copy link
Contributor Author

I don't understand what is going wrong during the checks

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 @cleconte987 nice work. The CI is green, I guess you already fixed the problems you mentioned.

@cleconte987
Copy link
Contributor Author

cleconte987 commented May 6, 2020

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.

@WillAyd WillAyd merged commit 0d3c5ce into pandas-dev:master May 6, 2020
@WillAyd
Copy link
Member

WillAyd commented May 6, 2020

Thanks @cleconte987

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants