You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Merge remote-tracking branch 'upstream/main' into missing-value-after-comparison
* upstream/main:
PERF: use lookup instead of hash_inner_join for merge with unique right keys (pandas-dev#64691)
BUG : update `SeriesGroupBy.ohlc()` to honor `as_index=False` (pandas-dev#65141)
PERF: Use DataFrame-level reductions in DataFrame.agg with list of funcs (pandas-dev#65031)
DOC: document required external libraries in read_* I/O docstrings (pandas-dev#65143)
DOC: improve MultiIndex.is_monotonic_increasing/decreasing docstrings (pandas-dev#65154)
BUG: Raise ValueError for non-boolean numeric_only in DataFrame/Series reductions (GH#53098) (pandas-dev#65131)
BUG: Timedelta.round() raises ZeroDivisionError when internal unit is 's' and target frequency is sub-second (pandas-dev#64836)
ENH: Add replace method to Index (closespandas-dev#19495) (pandas-dev#65099)
PERF: improve StringArray.isna (pandas-dev#57733)
BUG: read parquet files with older pytz (DEP: keep lower pytz minimum version) (pandas-dev#65133)
DEPR: deprecate dates-with-datetime64 in _maybe_downcast_for_indexing (pandas-dev#64871)
DOC: note that DataFrame.values is not writeable (pandas-dev#65142)
CLN: Update groupby observed defaults (pandas-dev#65148)
PERF: avoid materializing values[indexer] in Block.setitem (pandas-dev#64251)
DOC: update GroupBy.sum/min/max See Also sections (pandas-dev#65144)
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v3.0.3.rst
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,6 +14,8 @@ including other versions of pandas.
14
14
Fixed regressions
15
15
~~~~~~~~~~~~~~~~~
16
16
17
+
- Fixed reading of Parquet files with timezone-aware timestamps or localizing of a timeseries with a ``pytz`` timezone when an older version of ``pytz`` was installed (:issue:`64978`)
- Added :meth:`Index.replace` method to support value replacement functionality similar to :meth:`Series.replace` (:issue:`19495`)
34
35
- Display formatting for float sequences in DataFrame cells now respects the ``display.precision`` option (:issue:`60503`).
35
36
- Improved the precision of float parsing in :func:`read_csv` (:issue:`64395`)
36
37
- Improved the string ``repr`` of :class:`pd.core.arrays.SparseArray` (:issue:`64547`)
@@ -103,6 +104,7 @@ Deprecations
103
104
- Deprecated arithmetic operations between pandas objects (:class:`DataFrame`, :class:`Series`, :class:`Index`, and pandas-implemented :class:`ExtensionArray` subclasses) and list-likes other than ``list``, ``np.ndarray``, :class:`ExtensionArray`, :class:`Index`, :class:`Series`, :class:`DataFrame`. For e.g. ``tuple`` or ``range``, explicitly cast these to a supported object instead. In a future version, these will be treated as scalar-like for pointwise operation (:issue:`62423`)
104
105
- Deprecated automatic dtype promotion when reindexing with a ``fill_value`` that cannot be held by the original dtype. Explicitly cast to a common dtype instead (:issue:`53910`)
105
106
- Deprecated grouping by an index level name when the name matches multiple levels of a :class:`MultiIndex`. Use the level number instead (:issue:`49434`)
107
+
- Deprecated implicit conversion of ``datetime.date`` objects to :class:`Timestamp` when indexing or joining a :class:`DatetimeIndex`. Use :func:`to_datetime` to explicitly convert to :class:`DatetimeIndex` instead (:issue:`62158`)
106
108
- Deprecated passing a ``dict`` to :meth:`DataFrame.from_records`, use the :class:`DataFrame` constructor or :meth:`DataFrame.from_dict` instead (:issue:`22025`)
107
109
- Deprecated passing a non-dict (e.g. a list of dicts) to :meth:`DataFrame.from_dict`. Use the :class:`DataFrame` constructor instead (:issue:`58862`)
108
110
- Deprecated passing unnecessary ``*args`` and ``**kwargs`` to :meth:`.GroupBy.cumsum`, :meth:`.GroupBy.cumprod`, :meth:`.GroupBy.cummin`, :meth:`.GroupBy.cummax`, :meth:`.SeriesGroupBy.skew`, :meth:`.DataFrameGroupBy.skew`, :meth:`.SeriesGroupBy.take`, and :meth:`.DataFrameGroupBy.take`. The ``skipna`` parameter for the cum* methods is now an explicit keyword argument (:issue:`50407`)
@@ -114,6 +116,12 @@ Deprecations
114
116
- Deprecated the ``xlrd`` and ``pyxlsb`` engines in :func:`read_excel`. Use ``engine="calamine"`` instead (:issue:`56542`)
115
117
- Deprecated the default value of ``exact`` in :func:`assert_index_equal`; in a future version this will default to ``True`` instead of "equiv" (:issue:`57436`)
116
118
- Deprecated the default value of ``track_times`` in :meth:`HDFStore.put`. In a future version, the default will change from ``True`` to ``False`` so that HDF5 files are deterministic by default (:issue:`51456`)
119
+
- Deprecated passing a non-boolean value for ``numeric_only`` to :meth:`DataFrame.mean`,
:meth:`DataFrame.prod` (and their :class:`Series` equivalents); this will raise in
124
+
a future version of pandas (:issue:`53098`)
117
125
- Deprecated the inference of ``datetime64`` dtype from data containing ``datetime.date`` objects when used in comparisons or :meth:`Index.equals` with :class:`DatetimeIndex`. Use :func:`pandas.to_datetime` to explicitly convert to ``datetime64`` instead (:issue:`65056`)
118
126
-
119
127
@@ -131,6 +139,7 @@ Performance improvements
131
139
- Performance improvement in :func:`bdate_range` and :func:`date_range` with ``freq="B"`` or ``freq="C"`` (business day frequencies) (:issue:`16463`)
132
140
- Performance improvement in :func:`infer_freq` (:issue:`64463`)
133
141
- Performance improvement in :func:`merge` and :meth:`DataFrame.join` for many-to-many joins with ``sort=False`` (:issue:`56564`)
142
+
- Performance improvement in :func:`merge` for many-to-one joins with unique right keys (:issue:`38418`)
134
143
- Performance improvement in :func:`merge` with ``how="cross"`` (:issue:`38082`)
135
144
- Performance improvement in :func:`merge` with ``how="left"`` (:issue:`64370`)
136
145
- Performance improvement in :func:`merge` with ``sort=False`` for single-key ``how="left"``/``how="right"`` joins when the opposite join key is sorted, unique, and range-like (:issue:`64146`)
@@ -171,6 +180,9 @@ Performance improvements
171
180
- Performance improvement in :meth:`DataFrame.loc` and :meth:`DataFrame.iloc`
172
181
setitem with a 2D list-of-lists value by avoiding a wasteful round-trip
173
182
through an intermediate object array (:issue:`64229`).
183
+
- Performance improvement in :meth:`Series.iloc` and :meth:`DataFrame.iloc`
184
+
when setting datetimelike values into object-dtype data with list-like
- Bug in :class:`DateOffset` where ``DateOffset(1)`` and ``DateOffset(days=1)`` returned different results near daylight saving time transitions (:issue:`61862`)
210
222
- Bug in :func:`to_timedelta` where passing ``np.str_`` objects would fail in Cython string parsing (:issue:`48974`)
211
-
-
223
+
- Fixed regression in :meth:`Timedelta.round`, :meth:`Timedelta.floor`, and :meth:`Timedelta.ceil` raising ``ZeroDivisionError`` for sub-second ``freq`` (:issue:`64828`)
212
224
213
225
Timezones
214
226
^^^^^^^^^
@@ -295,6 +307,7 @@ Groupby/resample/rolling
295
307
- Bug in :meth:`.GroupBy.any` and :meth:`.GroupBy.all` returning ``NaN`` with ``float64`` dtype for unobserved categorical groups on NumPy ``bool`` data instead of the boolean identity value with ``bool`` dtype (:issue:`65100`)
296
308
- Bug in :meth:`.Rolling.skew` and :meth:`.Rolling.kurt` (and their :class:`GroupBy` counterparts) returning ``0.0`` and ``-3.0`` respectively for degenerate windows or groups; these now return ``NaN`` (:issue:`62864`)
297
309
- Bug in :meth:`.Rolling.skew` and :meth:`.Rolling.kurt` returning ``NaN`` for low-variance windows (:issue:`62946`)
310
+
- Bug in :meth:`.SeriesGroupBy.ohlc` ignoring ``as_index=False`` (:issue:`65140`)
298
311
- Bug in :meth:`DataFrame.groupby` with a :class:`Grouper` with ``freq`` raising ``AttributeError`` when all grouping keys are ``NaT`` (:issue:`43486`)
299
312
- Bug in :meth:`Series.resample` and :meth:`DataFrame.resample` where same-frequency resampling with monthly, quarterly, or annual frequencies bypassed aggregation, returning the original values instead of the aggregation result (:issue:`18553`)
0 commit comments