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
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.25.2.rst
+1
Original file line number
Diff line number
Diff line change
@@ -78,6 +78,7 @@ Groupby/resample/rolling
78
78
^^^^^^^^^^^^^^^^^^^^^^^^
79
79
80
80
- Bug incorrectly raising an ``IndexError`` when passing a list of quantiles to :meth:`pandas.core.groupby.DataFrameGroupBy.quantile` (:issue:`28113`).
81
+
- Bug in :meth:`pandas.core.groupby.GroupBy.shift`, :meth:`pandas.core.groupby.GroupBy.bfill` and :meth:`pandas.core.groupby.GroupBy.ffill` where timezone information would be dropped (:issue:`19995`, :issue:`27992`)
- Performance improvement in indexing with a non-unique :class:`IntervalIndex` (:issue:`27489`)
76
94
- Performance improvement in `MultiIndex.is_monotonic` (:issue:`27495`)
77
95
- Performance improvement in :func:`cut` when ``bins`` is an :class:`IntervalIndex` (:issue:`27668`)
96
+
- Performance improvement in :meth:`DataFrame.corr` when ``method`` is ``"spearman"`` (:issue:`28139`)
78
97
- Performance improvement in :meth:`DataFrame.replace` when provided a list of values to replace (:issue:`28099`)
79
98
80
-
81
99
.. _whatsnew_1000.bug_fixes:
82
100
83
101
Bug fixes
@@ -97,6 +115,9 @@ Datetimelike
97
115
- Bug in :meth:`Series.__setitem__` incorrectly casting ``np.timedelta64("NaT")`` to ``np.datetime64("NaT")`` when inserting into a :class:`Series` with datetime64 dtype (:issue:`27311`)
98
116
- Bug in :meth:`Series.dt` property lookups when the underlying data is read-only (:issue:`27529`)
99
117
- Bug in ``HDFStore.__getitem__`` incorrectly reading tz attribute created in Python 2 (:issue:`26443`)
118
+
- Bug in :meth:`pandas.core.groupby.SeriesGroupBy.nunique` where ``NaT`` values were interfering with the count of unique values (:issue:`27951`)
119
+
- Bug in :class:`Timestamp` subtraction when subtracting a :class:`Timestamp` from a ``np.datetime64`` object incorrectly raising ``TypeError`` (:issue:`28286`)
120
+
- Addition and subtraction of integer or integer-dtype arrays with :class:`Timestamp` will now raise ``NullFrequencyError`` instead of ``ValueError`` (:issue:`28268`)
100
121
-
101
122
102
123
@@ -142,7 +163,7 @@ Indexing
142
163
^^^^^^^^
143
164
144
165
- Bug in assignment using a reverse slicer (:issue:`26939`)
145
-
-
166
+
- Bug in reindexing a :meth:`PeriodIndex` with another type of index that contained a `Period` (:issue:`28323`) (:issue:`28337`)
146
167
147
168
Missing
148
169
^^^^^^^
@@ -162,12 +183,14 @@ I/O
162
183
- :meth:`read_csv` now accepts binary mode file buffers when using the Python csv engine (:issue:`23779`)
163
184
- Bug in :meth:`DataFrame.to_json` where using a Tuple as a column or index value and using ``orient="columns"`` or ``orient="index"`` would produce invalid JSON (:issue:`20500`)
164
185
- Improve infinity parsing. :meth:`read_csv` now interprets ``Infinity``, ``+Infinity``, ``-Infinity`` as floating point values (:issue:`10065`)
186
+
- Bug in :meth:`DataFrame.to_csv` where values were truncated when the length of ``na_rep`` was shorter than the text input data. (:issue:`25099`)
165
187
166
188
Plotting
167
189
^^^^^^^^
168
190
169
191
- Bug in :meth:`Series.plot` not able to plot boolean values (:issue:`23719`)
170
192
-
193
+
- Bug in :meth:`DataFrame.plot` not able to plot when no rows (:issue:`27758`)
171
194
- Bug in :meth:`DataFrame.plot` producing incorrect legend markers when plotting multiple series on the same axis (:issue:`18222`)
172
195
- Bug in :meth:`DataFrame.plot` when ``kind='box'`` and data contains datetime or timedelta data. These types are now automatically dropped (:issue:`22799`)
173
196
- Bug in :meth:`DataFrame.plot.line` and :meth:`DataFrame.plot.area` produce wrong xlim in x-axis (:issue:`27686`, :issue:`25160`, :issue:`24784`)
@@ -184,7 +207,7 @@ Groupby/resample/rolling
184
207
Reshaping
185
208
^^^^^^^^^
186
209
187
-
-
210
+
- Bug in :meth:`DataFrame.stack` not handling non-unique indexes correctly when creating MultiIndex (:issue: `28301`)
188
211
-
189
212
- Bug in :meth:`pivot_table` not returning correct type ``float`` when ``margins=True`` and ``aggfunc='mean'`` (:issue:`24893`)
190
213
@@ -212,7 +235,7 @@ Other
212
235
- Trying to set the ``display.precision``, ``display.max_rows`` or ``display.max_columns`` using :meth:`set_option` to anything but a ``None`` or a positive int will raise a ``ValueError`` (:issue:`23348`)
213
236
- Using :meth:`DataFrame.replace` with overlapping keys in a nested dictionary will no longer raise, now matching the behavior of a flat dictionary (:issue:`27660`)
214
237
- :meth:`DataFrame.to_csv` and :meth:`Series.to_csv` now support dicts as ``compression`` argument with key ``'method'`` being the compression method and others as additional compression options when the compression method is ``'zip'``. (:issue:`26023`)
0 commit comments