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.24.0.txt
+43-2
Original file line number
Diff line number
Diff line change
@@ -198,6 +198,8 @@ Other Enhancements
198
198
- :meth:`round`, :meth:`ceil`, and meth:`floor` for :class:`DatetimeIndex` and :class:`Timestamp` now support an ``ambiguous`` argument for handling datetimes that are rounded to ambiguous times (:issue:`18946`)
199
199
- :class:`Resampler` now is iterable like :class:`GroupBy` (:issue:`15314`).
200
200
- :meth:`Series.resample` and :meth:`DataFrame.resample` have gained the :meth:`Resampler.quantile` (:issue:`15023`).
201
+
- :meth:`pandas.core.dtypes.is_list_like` has gained a keyword ``allow_sets`` which is ``True`` by default; if ``False``,
202
+
all instances of ``set`` will not be considered "list-like" anymore (:issue:`23061`)
201
203
- :meth:`Index.to_frame` now supports overriding column name(s) (:issue:`22580`).
202
204
- New attribute :attr:`__git_version__` will return git commit sha of current build (:issue:`21295`).
203
205
- Compatibility with Matplotlib 3.0 (:issue:`22790`).
@@ -440,15 +442,15 @@ In addition to these API breaking changes, many :ref:`performance improvements a
440
442
Raise ValueError in ``DataFrame.to_dict(orient='index')``
@@ -626,6 +628,7 @@ update the ``ExtensionDtype._metadata`` tuple to match the signature of your
626
628
- :meth:`Series.astype` and :meth:`DataFrame.astype` now dispatch to :meth:`ExtensionArray.astype` (:issue:`21185:`).
627
629
- Slicing a single row of a ``DataFrame`` with multiple ExtensionArrays of the same type now preserves the dtype, rather than coercing to object (:issue:`22784`)
628
630
- Added :meth:`pandas.api.types.register_extension_dtype` to register an extension type with pandas (:issue:`22664`)
631
+
- Bug when concatenating multiple ``Series`` with different extension dtypes not casting to object dtype (:issue:`22994`)
629
632
- Series backed by an ``ExtensionArray`` now work with :func:`util.hash_pandas_object` (:issue:`23066`)
630
633
- Updated the ``.type`` attribute for ``PeriodDtype``, ``DatetimeTZDtype``, and ``IntervalDtype`` to be instances of the dtype (``Period``, ``Timestamp``, and ``Interval`` respectively) (:issue:`22938`)
631
634
- :func:`ExtensionArray.isna` is allowed to return an ``ExtensionArray`` (:issue:`22325`).
@@ -788,6 +791,7 @@ Categorical
788
791
^^^^^^^^^^^
789
792
790
793
- Bug in :meth:`Categorical.from_codes` where ``NaN`` values in ``codes`` were silently converted to ``0`` (:issue:`21767`). In the future this will raise a ``ValueError``. Also changes the behavior of ``.from_codes([1.1, 2.0])``.
794
+
- Bug in :meth:`Categorical.sort_values` where ``NaN`` values were always positioned in front regardless of ``na_position`` value. (:issue:`22556`).
791
795
- Bug when indexing with a boolean-valued ``Categorical``. Now a boolean-valued ``Categorical`` is treated as a boolean mask (:issue:`22665`)
792
796
- Constructing a :class:`CategoricalIndex` with empty values and boolean categories was raising a ``ValueError`` after a change to dtype coercion (:issue:`22702`).
793
797
@@ -923,6 +927,41 @@ MultiIndex
923
927
I/O
924
928
^^^
925
929
930
+
.. _whatsnew_0240.bug_fixes.nan_with_str_dtype:
931
+
932
+
Proper handling of `np.NaN` in a string data-typed column with the Python engine
Notice how we now instead output ``np.nan`` itself instead of a stringified form of it.
964
+
926
965
- :func:`read_html()` no longer ignores all-whitespace ``<tr>`` within ``<thead>`` when considering the ``skiprows`` and ``header`` arguments. Previously, users had to decrease their ``header`` and ``skiprows`` values on such tables to work around the issue. (:issue:`21641`)
927
966
- :func:`read_excel()` will correctly show the deprecation warning for previously deprecated ``sheetname`` (:issue:`17994`)
928
967
- :func:`read_csv()` and func:`read_table()` will throw ``UnicodeError`` and not coredump on badly encoded strings (:issue:`22748`)
@@ -972,6 +1011,7 @@ Reshaping
972
1011
- Bug in :func:`merge` when merging ``datetime64[ns, tz]`` data that contained a DST transition (:issue:`18885`)
973
1012
- Bug in :func:`merge_asof` when merging on float values within defined tolerance (:issue:`22981`)
974
1013
- Bug in :func:`pandas.concat` when concatenating a multicolumn DataFrame with tz-aware data against a DataFrame with a different number of columns (:issue`22796`)
1014
+
- Bug in :func:`merge_asof` where confusing error message raised when attempting to merge with missing values (:issue:`23189`)
975
1015
976
1016
.. _whatsnew_0240.bug_fixes.sparse:
977
1017
@@ -985,6 +1025,7 @@ Sparse
985
1025
- Improved performance of :meth:`Series.shift` for non-NA ``fill_value``, as values are no longer converted to a dense array.
986
1026
- Bug in ``DataFrame.groupby`` not including ``fill_value`` in the groups for non-NA ``fill_value`` when grouping by a sparse column (:issue:`5078`)
987
1027
- Bug in unary inversion operator (``~``) on a ``SparseSeries`` with boolean values. The performance of this has also been improved (:issue:`22835`)
1028
+
- Bug in :meth:`SparseArary.unique` not returning the unique values (:issue:`19595`)
0 commit comments