Skip to content

Commit 96add4f

Browse files
meeseeksmachinedatapythonistaphofl
authored
Backport PR #51509 on branch 2.0.x (DOC: Clean up release notes of 2.0.0) (#51528)
Backport PR #51509: DOC: Clean up release notes of 2.0.0 Co-authored-by: Marc Garcia <[email protected]> Co-authored-by: Patrick Hoefler <[email protected]>
1 parent a81d104 commit 96add4f

File tree

1 file changed

+5
-28
lines changed

1 file changed

+5
-28
lines changed

doc/source/whatsnew/v2.0.0.rst

+5-28
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
.. _whatsnew_200:
22

3-
What's new in 2.0.0 (??)
4-
------------------------
3+
What's new in 2.0.0 (March XX, 2023)
4+
------------------------------------
55

66
These are the changes in pandas 2.0.0. See :ref:`release` for a full changelog
77
including other versions of pandas.
@@ -324,7 +324,6 @@ Other enhancements
324324
- Added new argument ``engine`` to :func:`read_json` to support parsing JSON with pyarrow by specifying ``engine="pyarrow"`` (:issue:`48893`)
325325
- Added support for SQLAlchemy 2.0 (:issue:`40686`)
326326
- :class:`Index` set operations :meth:`Index.union`, :meth:`Index.intersection`, :meth:`Index.difference`, and :meth:`Index.symmetric_difference` now support ``sort=True``, which will always return a sorted result, unlike the default ``sort=None`` which does not sort in some cases (:issue:`25151`)
327-
-
328327

329328
.. ---------------------------------------------------------------------------
330329
.. _whatsnew_200.notable_bug_fixes:
@@ -791,7 +790,7 @@ Other API changes
791790
- :func:`read_stata` with parameter ``index_col`` set to ``None`` (the default) will now set the index on the returned :class:`DataFrame` to a :class:`RangeIndex` instead of a :class:`Int64Index` (:issue:`49745`)
792791
- Changed behavior of :class:`Index`, :class:`Series`, and :class:`DataFrame` arithmetic methods when working with object-dtypes, the results no longer do type inference on the result of the array operations, use ``result.infer_objects(copy=False)`` to do type inference on the result (:issue:`49999`, :issue:`49714`)
793792
- Changed behavior of :class:`Index` constructor with an object-dtype ``numpy.ndarray`` containing all-``bool`` values or all-complex values, this will now retain object dtype, consistent with the :class:`Series` behavior (:issue:`49594`)
794-
- Changed behavior of :meth:`Series.astype` from object-dtype containing ``bytes`` objects to string dtypes; this now does ``val.decode()"`` on bytes objects instead of ``str(val)``, matching :meth:`Index.astype` behavior (:issue:`45326`)
793+
- Changed behavior of :meth:`Series.astype` from object-dtype containing ``bytes`` objects to string dtypes; this now does ``val.decode()`` on bytes objects instead of ``str(val)``, matching :meth:`Index.astype` behavior (:issue:`45326`)
795794
- Added ``"None"`` to default ``na_values`` in :func:`read_csv` (:issue:`50286`)
796795
- Changed behavior of :class:`Series` and :class:`DataFrame` constructors when given an integer dtype and floating-point data that is not round numbers, this now raises ``ValueError`` instead of silently retaining the float dtype; do ``Series(data)`` or ``DataFrame(data)`` to get the old behavior, and ``Series(data).astype(dtype)`` or ``DataFrame(data).astype(dtype)`` to get the specified dtype (:issue:`49599`)
797796
- Changed behavior of :meth:`DataFrame.shift` with ``axis=1``, an integer ``fill_value``, and homogeneous datetime-like dtype, this now fills new columns with integer dtypes instead of casting to datetimelike (:issue:`49842`)
@@ -816,7 +815,6 @@ Other API changes
816815
- The methods :meth:`Series.round`, :meth:`DataFrame.__invert__`, :meth:`Series.__invert__`, :meth:`DataFrame.swapaxes`, :meth:`DataFrame.first`, :meth:`DataFrame.last`, :meth:`Series.first`, :meth:`Series.last` and :meth:`DataFrame.align` will now always return new objects (:issue:`51032`)
817816
- :class:`DataFrame` and :class:`DataFrameGroupBy` aggregations (e.g. "sum") with object-dtype columns no longer infer non-object dtypes for their results, explicitly call ``result.infer_objects(copy=False)`` on the result to obtain the old behavior (:issue:`51205`, :issue:`49603`)
818817
- Added :func:`pandas.api.types.is_any_real_numeric_dtype` to check for real numeric dtypes (:issue:`51152`)
819-
-
820818

821819
.. note::
822820

@@ -856,7 +854,6 @@ Deprecations
856854
- Deprecated :meth:`Series.backfill` in favor of :meth:`Series.bfill` (:issue:`33396`)
857855
- Deprecated :meth:`DataFrame.pad` in favor of :meth:`DataFrame.ffill` (:issue:`33396`)
858856
- Deprecated :meth:`DataFrame.backfill` in favor of :meth:`DataFrame.bfill` (:issue:`33396`)
859-
-
860857

861858
.. ---------------------------------------------------------------------------
862859
.. _whatsnew_200.prior_deprecations:
@@ -1163,7 +1160,6 @@ Performance improvements
11631160
- Fixed a reference leak in :func:`read_hdf` (:issue:`37441`)
11641161
- Fixed a memory leak in :meth:`DataFrame.to_json` and :meth:`Series.to_json` when serializing datetimes and timedeltas (:issue:`40443`)
11651162
- Decreased memory usage in many :class:`DataFrameGroupBy` methods (:issue:`51090`)
1166-
-
11671163

11681164
.. ---------------------------------------------------------------------------
11691165
.. _whatsnew_200.bug_fixes:
@@ -1179,7 +1175,6 @@ Categorical
11791175
- Bug in :meth:`DataFrame.groupby` and :meth:`Series.groupby` would reorder categories when used as a grouper (:issue:`48749`)
11801176
- Bug in :class:`Categorical` constructor when constructing from a :class:`Categorical` object and ``dtype="category"`` losing ordered-ness (:issue:`49309`)
11811177
- Bug in :meth:`.SeriesGroupBy.min`, :meth:`.SeriesGroupBy.max`, :meth:`.DataFrameGroupBy.min`, and :meth:`.DataFrameGroupBy.max` with unordered :class:`CategoricalDtype` with no groups failing to raise ``TypeError`` (:issue:`51034`)
1182-
-
11831178

11841179
Datetimelike
11851180
^^^^^^^^^^^^
@@ -1215,22 +1210,19 @@ Datetimelike
12151210
- Bug in :func:`to_datetime` with both ``unit`` and ``origin`` specified returning incorrect results (:issue:`42624`)
12161211
- Bug in :meth:`GroupBy.quantile` with datetime or timedelta dtypes giving incorrect results for groups containing ``NaT`` (:issue:`51373`)
12171212
- Bug in :meth:`Groupby.quantile` incorrectly raising with :class:`PeriodDtype` or :class:`DatetimeTZDtype` (:issue:`51373`)
1218-
-
12191213

12201214
Timedelta
12211215
^^^^^^^^^
12221216
- Bug in :func:`to_timedelta` raising error when input has nullable dtype ``Float64`` (:issue:`48796`)
12231217
- Bug in :class:`Timedelta` constructor incorrectly raising instead of returning ``NaT`` when given a ``np.timedelta64("nat")`` (:issue:`48898`)
12241218
- Bug in :class:`Timedelta` constructor failing to raise when passed both a :class:`Timedelta` object and keywords (e.g. days, seconds) (:issue:`48898`)
1225-
-
12261219

12271220
Timezones
12281221
^^^^^^^^^
12291222
- Bug in :meth:`Series.astype` and :meth:`DataFrame.astype` with object-dtype containing multiple timezone-aware ``datetime`` objects with heterogeneous timezones to a :class:`DatetimeTZDtype` incorrectly raising (:issue:`32581`)
12301223
- Bug in :func:`to_datetime` was failing to parse date strings with timezone name when ``format`` was specified with ``%Z`` (:issue:`49748`)
12311224
- Better error message when passing invalid values to ``ambiguous`` parameter in :meth:`Timestamp.tz_localize` (:issue:`49565`)
12321225
- Bug in string parsing incorrectly allowing a :class:`Timestamp` to be constructed with an invalid timezone, which would raise when trying to print (:issue:`50668`)
1233-
-
12341226

12351227
Numeric
12361228
^^^^^^^
@@ -1257,21 +1249,18 @@ Conversion
12571249
- Bug in :func:`to_datetime` was not respecting ``exact`` argument when ``format`` was an ISO8601 format (:issue:`12649`)
12581250
- Bug in :meth:`TimedeltaArray.astype` raising ``TypeError`` when converting to a pyarrow duration type (:issue:`49795`)
12591251
- Bug in :meth:`DataFrame.eval` and :meth:`DataFrame.query` raising for extension array dtypes (:issue:`29618`, :issue:`50261`, :issue:`31913`)
1260-
-
12611252

12621253
Strings
12631254
^^^^^^^
12641255
- Bug in :func:`pandas.api.types.is_string_dtype` that would not return ``True`` for :class:`StringDtype` or :class:`ArrowDtype` with ``pyarrow.string()`` (:issue:`15585`)
12651256
- Bug in converting string dtypes to "datetime64[ns]" or "timedelta64[ns]" incorrectly raising ``TypeError`` (:issue:`36153`)
12661257
- Bug in setting values in a string-dtype column with an array, mutating the array as side effect when it contains missing values (:issue:`51299`)
1267-
-
12681258

12691259
Interval
12701260
^^^^^^^^
12711261
- Bug in :meth:`IntervalIndex.is_overlapping` incorrect output if interval has duplicate left boundaries (:issue:`49581`)
12721262
- Bug in :meth:`Series.infer_objects` failing to infer :class:`IntervalDtype` for an object series of :class:`Interval` objects (:issue:`50090`)
12731263
- Bug in :meth:`Series.shift` with :class:`IntervalDtype` and invalid null ``fill_value`` failing to raise ``TypeError`` (:issue:`51258`)
1274-
-
12751264

12761265
Indexing
12771266
^^^^^^^^
@@ -1294,7 +1283,6 @@ Indexing
12941283
- Bug in :meth:`Series.rename` with :class:`MultiIndex` losing extension array dtypes (:issue:`21055`)
12951284
- Bug in :meth:`DataFrame.isetitem` coercing extension array dtypes in :class:`DataFrame` to object (:issue:`49922`)
12961285
- Bug in :class:`BusinessHour` would cause creation of :class:`DatetimeIndex` to fail when no opening hour was included in the index (:issue:`49835`)
1297-
-
12981286

12991287
Missing
13001288
^^^^^^^
@@ -1320,7 +1308,6 @@ MultiIndex
13201308
- Bug in :meth:`MultiIndex.join` losing dtypes when :class:`MultiIndex` has duplicates (:issue:`49830`)
13211309
- Bug in :meth:`MultiIndex.putmask` losing extension array (:issue:`49830`)
13221310
- Bug in :meth:`MultiIndex.value_counts` returning a :class:`Series` indexed by flat index of tuples instead of a :class:`MultiIndex` (:issue:`49558`)
1323-
-
13241311

13251312
I/O
13261313
^^^
@@ -1350,13 +1337,11 @@ Period
13501337
- Bug in parsing strings representing Week-periods e.g. "2017-01-23/2017-01-29" as minute-frequency instead of week-frequency (:issue:`50803`)
13511338
- Bug in :meth:`.GroupBy.sum`, :meth:`.GroupBy.cumsum`, :meth:`.GroupBy.prod`, :meth:`.GroupBy.cumprod` with :class:`PeriodDtype` failing to raise ``TypeError`` (:issue:`51040`)
13521339
- Bug in parsing empty string with :class:`Period` incorrectly raising ``ValueError`` instead of returning ``NaT`` (:issue:`51349`)
1353-
-
13541340

13551341
Plotting
13561342
^^^^^^^^
13571343
- Bug in :meth:`DataFrame.plot.hist`, not dropping elements of ``weights`` corresponding to ``NaN`` values in ``data`` (:issue:`48884`)
13581344
- ``ax.set_xlim`` was sometimes raising ``UserWarning`` which users couldn't address due to ``set_xlim`` not accepting parsing arguments - the converter now uses :func:`Timestamp` instead (:issue:`49148`)
1359-
-
13601345

13611346
Groupby/resample/rolling
13621347
^^^^^^^^^^^^^^^^^^^^^^^^
@@ -1385,7 +1370,6 @@ Groupby/resample/rolling
13851370
- Bug in :meth:`.DataFrameGroupBy.agg` with ``engine="numba"`` failing to respect ``as_index=False`` (:issue:`51228`)
13861371
- Bug in :meth:`DataFrameGroupBy.agg`, :meth:`SeriesGroupBy.agg`, and :meth:`Resampler.agg` would ignore arguments when passed a list of functions (:issue:`50863`)
13871372
- Bug in :meth:`DataFrameGroupBy.ohlc` ignoring ``as_index=False`` (:issue:`51413`)
1388-
-
13891373

13901374
Reshaping
13911375
^^^^^^^^^
@@ -1399,7 +1383,6 @@ Reshaping
13991383
- Bug in :meth:`DataFrame.explode` raising ``ValueError`` on multiple columns with ``NaN`` values or empty lists (:issue:`46084`)
14001384
- Bug in :meth:`DataFrame.transpose` with ``IntervalDtype`` column with ``timedelta64[ns]`` endpoints (:issue:`44917`)
14011385
- Bug in :meth:`DataFrame.agg` and :meth:`Series.agg` would ignore arguments when passed a list of functions (:issue:`50863`)
1402-
-
14031386

14041387
Sparse
14051388
^^^^^^
@@ -1423,27 +1406,21 @@ ExtensionArray
14231406
Styler
14241407
^^^^^^
14251408
- Fix :meth:`~pandas.io.formats.style.Styler.background_gradient` for nullable dtype :class:`Series` with ``NA`` values (:issue:`50712`)
1426-
-
14271409

14281410
Metadata
14291411
^^^^^^^^
14301412
- Fixed metadata propagation in :meth:`DataFrame.corr` and :meth:`DataFrame.cov` (:issue:`28283`)
1431-
-
14321413

14331414
Other
14341415
^^^^^
14351416

14361417
- Bug in :meth:`Series.searchsorted` inconsistent behavior when accepting :class:`DataFrame` as parameter ``value`` (:issue:`49620`)
14371418
- Bug in :func:`array` failing to raise on :class:`DataFrame` inputs (:issue:`51167`)
1438-
-
1439-
1440-
.. ***DO NOT USE THIS SECTION***
1441-
1442-
-
1443-
-
14441419

14451420
.. ---------------------------------------------------------------------------
14461421
.. _whatsnew_200.contributors:
14471422

14481423
Contributors
14491424
~~~~~~~~~~~~
1425+
1426+
.. contributors:: v1.5.0rc0..v2.0.0|HEAD

0 commit comments

Comments
 (0)