Skip to content

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

Merged
merged 3 commits into from
Aug 16, 2023

Conversation

rhshadrach
Copy link
Member

@rhshadrach rhshadrach commented Aug 14, 2023

  • closes #xxxx (Replace xxxx with the GitHub issue number)
  • Tests added and passed if fixing a bug or adding a new feature
  • All code checks passed.
  • Added type annotations to new arguments/methods/functions.
  • Added an entry in the latest doc/source/whatsnew/vX.X.X.rst file if fixing a bug or adding a new feature.

Now there's a fun PR number!

@rhshadrach rhshadrach added this to the 2.1 milestone Aug 14, 2023
Copy link
Member Author

@rhshadrach rhshadrach left a 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`).
Copy link
Member Author

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`)
Copy link
Member Author

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

Comment on lines 279 to 281
-
-

Copy link
Member Author

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

Copy link
Member

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?

Copy link
Member Author

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.

@@ -374,6 +378,8 @@ Deprecations
Deprecated silent upcasting in setitem-like Series operations
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

https://pandas.pydata.org/pdeps/0006-ban-upcasting.html
Copy link
Member Author

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.

@lithomas1
Copy link
Member

/preview

@github-actions
Copy link
Contributor

No preview found for PR #54545. Did the docs build complete?

@@ -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`).
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
compared to NumPy object (:issue:`#54430`).
compared to NumPy object (:issue:`54430`).

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks!

- :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`)
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
- Add :meth:`Index.diff()` and :meth:`Index.round()` (:issue:`19708`)
- Add :meth:`Index.diff` and :meth:`Index.round` (:issue:`19708`)

- 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`)
Copy link
Member

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

Copy link
Member Author

Choose a reason for hiding this comment

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

Thanks!

@mroeschke mroeschke merged commit e92ea57 into pandas-dev:main Aug 16, 2023
@mroeschke
Copy link
Member

Thanks @rhshadrach

meeseeksmachine pushed a commit to meeseeksmachine/pandas that referenced this pull request Aug 16, 2023
mroeschke pushed a commit that referenced this pull request Aug 16, 2023
…54588)

Backport PR #54545: DOC: whatsnew 2.1.0 refinements

Co-authored-by: Richard Shadrach <[email protected]>
@rhshadrach rhshadrach deleted the whatsnew_2.1.0_fixups branch August 17, 2023 09:00
mroeschke pushed a commit to mroeschke/pandas that referenced this pull request Aug 18, 2023
* DOC: whatsnew 2.1.0 refinements

* fixup

* Further fixups
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.

4 participants