-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
DOC: whatsnew 2.1.0 refinements #54545
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
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.
@MarcoGorelli - one of the side-effects of the autosort in the whatsnew is that some notes got moved around here making review slightly harder. It looks like it happened only a few times, not a big deal in my opinion. Still very positive on autosort in general.
New :meth:`DataFrame.map` method and support for ExtensionArrays | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
The :meth:`DataFrame.map` been added and :meth:`DataFrame.applymap` has been deprecated. :meth:`DataFrame.map` has the same functionality as :meth:`DataFrame.applymap`, but the new name better communicates that this is the :class:`DataFrame` version of :meth:`Series.map` (:issue:`52353`). |
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.
It seemed to me we were burying the lead here; wanted to make the additional method to DataFrame be at the top.
@@ -222,50 +222,51 @@ If the input contains NA values, the previous version would drop those as well w | |||
Other enhancements | |||
^^^^^^^^^^^^^^^^^^ | |||
- :meth:`Series.ffill` and :meth:`Series.bfill` are now supported for objects with :class:`IntervalDtype` (:issue:`54247`) | |||
- :meth:`Categorical.map` and :meth:`CategoricalIndex.map` now have a ``na_action`` parameter. | |||
:meth:`Categorical.map` implicitly had a default value of ``"ignore"`` for ``na_action``. This has formally been deprecated and will be changed to ``None`` in the future. | |||
- Added ``filters`` parameter to :func:`read_parquet` to filter out data, compatible with both ``engines`` (:issue:`53212`) |
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.
This note was moved from the bugfix section
doc/source/whatsnew/v2.1.0.rst
Outdated
- | ||
- | ||
|
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.
This section is blank; I just wanted to make this more apparent. cc @lithomas1
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.
My bad, I deleted the lines but not the section 🤦 .
Can we just take the whole section out?
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.
Sounds good! I was thinking we may still add something here, but that seems quite unlikely. Will remove in this PR.
doc/source/whatsnew/v2.1.0.rst
Outdated
@@ -374,6 +378,8 @@ Deprecations | |||
Deprecated silent upcasting in setitem-like Series operations | |||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | |||
|
|||
https://pandas.pydata.org/pdeps/0006-ban-upcasting.html |
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 thought the link to the PDEP could be more prominent.
/preview |
No preview found for PR #54545. Did the docs build complete? |
doc/source/whatsnew/v2.1.0.rst
Outdated
@@ -44,7 +44,7 @@ This release introduces an option ``future.infer_string`` that infers all | |||
strings as PyArrow backed strings with dtype ``pd.ArrowDtype(pa.string())`` instead. | |||
This option only works if PyArrow is installed. PyArrow backed strings have a | |||
significantly reduced memory footprint and provide a big performance improvement | |||
compared to NumPy object. | |||
compared to NumPy object (:issue:`#54430`). |
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.
compared to NumPy object (:issue:`#54430`). | |
compared to NumPy object (:issue:`54430`). |
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!
doc/source/whatsnew/v2.1.0.rst
Outdated
- :meth:`pandas.read_html` now supports the ``storage_options`` keyword when used with a URL, allowing users to add headers the outbound HTTP request (:issue:`49944`) | ||
- Add :meth:`diff()` and :meth:`round()` for :class:`Index` (:issue:`19708`) | ||
- :meth:`pandas.read_html` now supports the ``storage_options`` keyword when used with a URL, allowing users to add headers to the outbound HTTP request (:issue:`49944`) | ||
- Add :meth:`Index.diff()` and :meth:`Index.round()` (:issue:`19708`) |
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.
- Add :meth:`Index.diff()` and :meth:`Index.round()` (:issue:`19708`) | |
- Add :meth:`Index.diff` and :meth:`Index.round` (:issue:`19708`) |
doc/source/whatsnew/v2.1.0.rst
Outdated
- Bug in :meth:`DataFrame.shift` with ``axis=1`` on a :class:`DataFrame` with a single :class:`ExtensionDtype` column giving incorrect results (:issue:`53832`) | ||
- Bug in :meth:`GroupBy.first` and :meth:`GroupBy.last` where an empty group would return ``np.nan`` instead of a an ExtensionArray's NA value (:issue:`39098`) | ||
- Bug in :meth:`DataFrameGroupBy.first`, :meth:`DataFrameGroupBy.last`, :meth:`SeriesGroupBy.first`, and :meth:`SeriesGroupBy.last` where an empty group would return ``np.nan`` instead of the corresponding :class:`.ExtensionArray` NA value (:issue:`39098`) |
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.
needs a "." before DataFrameGroupBy to render
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!
Thanks @rhshadrach |
…54588) Backport PR #54545: DOC: whatsnew 2.1.0 refinements Co-authored-by: Richard Shadrach <[email protected]>
* DOC: whatsnew 2.1.0 refinements * fixup * Further fixups
doc/source/whatsnew/vX.X.X.rst
file if fixing a bug or adding a new feature.Now there's a fun PR number!