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/master' into to_html-to_string
* upstream/master:
BUG: Casting tz-aware DatetimeIndex to object-dtype ndarray/Index (pandas-dev#23524)
BUG: Delegate more of Excel parsing to CSV (pandas-dev#23544)
API: DataFrame.__getitem__ returns Series for sparse column (pandas-dev#23561)
CLN: use float64_t consistently instead of double, double_t (pandas-dev#23583)
DOC: Fix Order of parameters in docstrings (pandas-dev#23611)
TST: Unskip some Categorical Tests (pandas-dev#23613)
TST: Fix integer ops comparison test (pandas-dev#23619)
DOC: Fixes to docstring to add validation to CI (pandas-dev#23560)
DOC: Remove incorrect periods at the end of parameter types (pandas-dev#23600)
MAINT: tm.assert_raises_regex --> pytest.raises (pandas-dev#23592)
DOC: Updating Series.resample and DataFrame.resample docstrings (pandas-dev#23197)
Copy file name to clipboardExpand all lines: doc/source/whatsnew/v0.24.0.txt
+8
Original file line number
Diff line number
Diff line change
@@ -239,6 +239,7 @@ Other Enhancements
239
239
- Added :meth:`Interval.overlaps`, :meth:`IntervalArray.overlaps`, and :meth:`IntervalIndex.overlaps` for determining overlaps between interval-like objects (:issue:`21998`)
240
240
- :func:`~DataFrame.to_parquet` now supports writing a ``DataFrame`` as a directory of parquet files partitioned by a subset of the columns when ``engine = 'pyarrow'`` (:issue:`23283`)
241
241
- :meth:`Timestamp.tz_localize`, :meth:`DatetimeIndex.tz_localize`, and :meth:`Series.tz_localize` have gained the ``nonexistent`` argument for alternative handling of nonexistent times. See :ref:`timeseries.timezone_nonexsistent` (:issue:`8917`)
242
+
- :meth:`read_excel()` now accepts ``usecols`` as a list of column names or callable (:issue:`18273`)
242
243
243
244
.. _whatsnew_0240.api_breaking:
244
245
@@ -563,6 +564,7 @@ changes were made:
563
564
- The result of concatenating a mix of sparse and dense Series is a Series with sparse values, rather than a ``SparseSeries``.
564
565
- ``SparseDataFrame.combine`` and ``DataFrame.combine_first`` no longer supports combining a sparse column with a dense column while preserving the sparse subtype. The result will be an object-dtype SparseArray.
565
566
- Setting :attr:`SparseArray.fill_value` to a fill value with a different dtype is now allowed.
567
+
- ``DataFrame[column]`` is now a :class:`Series` with sparse values, rather than a :class:`SparseSeries`, when slicing a single column with sparse values (:issue:`23559`).
566
568
567
569
Some new warnings are issued for operations that require or are likely to materialize a large dense array:
568
570
@@ -1128,6 +1130,9 @@ Datetimelike
1128
1130
- Bug in :class:`PeriodIndex` with attribute ``freq.n`` greater than 1 where adding a :class:`DateOffset` object would return incorrect results (:issue:`23215`)
1129
1131
- Bug in :class:`Series` that interpreted string indices as lists of characters when setting datetimelike values (:issue:`23451`)
1130
1132
- Bug in :class:`Timestamp` constructor which would drop the frequency of an input :class:`Timestamp` (:issue:`22311`)
1133
+
- Bug in :class:`DatetimeIndex` where calling ``np.array(dtindex, dtype=object)`` would incorrectly return an array of ``long`` objects (:issue:`23524`)
1134
+
- Bug in :class:`Index` where passing a timezone-aware :class:`DatetimeIndex` and `dtype=object` would incorrectly raise a ``ValueError`` (:issue:`23524`)
1135
+
- Bug in :class:`Index` where calling ``np.array(dtindex, dtype=object)`` on a timezone-naive :class:`DatetimeIndex` would return an array of ``datetime`` objects instead of :class:`Timestamp` objects, potentially losing nanosecond portions of the timestamps (:issue:`23524`)
1131
1136
1132
1137
Timedelta
1133
1138
^^^^^^^^^
@@ -1174,6 +1179,7 @@ Offsets
1174
1179
- Bug in :class:`FY5253` where date offsets could incorrectly raise an ``AssertionError`` in arithmetic operatons (:issue:`14774`)
1175
1180
- Bug in :class:`DateOffset` where keyword arguments ``week`` and ``milliseconds`` were accepted and ignored. Passing these will now raise ``ValueError`` (:issue:`19398`)
1176
1181
- Bug in adding :class:`DateOffset` with :class:`DataFrame` or :class:`PeriodIndex` incorrectly raising ``TypeError`` (:issue:`23215`)
1182
+
- Bug in comparing :class:`DateOffset` objects with non-DateOffset objects, particularly strings, raising ``ValueError`` instead of returning ``False`` for equality checks and ``True`` for not-equal checks (:issue:`23524`)
1177
1183
1178
1184
Numeric
1179
1185
^^^^^^^
@@ -1301,6 +1307,8 @@ Notice how we now instead output ``np.nan`` itself instead of a stringified form
1301
1307
- Bug in :meth:`HDFStore.append` when appending a :class:`DataFrame` with an empty string column and ``min_itemsize`` < 8 (:issue:`12242`)
1302
1308
- Bug in :meth:`read_csv()` in which :class:`MultiIndex` index names were being improperly handled in the cases when they were not provided (:issue:`23484`)
1303
1309
- Bug in :meth:`read_html()` in which the error message was not displaying the valid flavors when an invalid one was provided (:issue:`23549`)
1310
+
- Bug in :meth:`read_excel()` in which ``index_col=None`` was not being respected and parsing index columns anyway (:issue:`20480`)
1311
+
- Bug in :meth:`read_excel()` in which ``usecols`` was not being validated for proper column names when passed in as a string (:issue:`20480`)
0 commit comments