Back to Pandas

What's new in 3.0.2 (March XX, 2026)

doc/source/whatsnew/v3.0.2.rst

3.1.0.dev02.0 KB
Original Source

.. _whatsnew_302:

What's new in 3.0.2 (March XX, 2026)

These are the changes in pandas 3.0.2. See :ref:release for a full changelog including other versions of pandas.

{{ header }}

.. --------------------------------------------------------------------------- .. _whatsnew_302.enhancements:

Enhancements

- Added support for :func:`pd.col` expressions in :meth:`Series.case_when` (:issue:`64070`).

.. ---------------------------------------------------------------------------
.. _whatsnew_302.regressions:

Fixed regressions
  • Fixed regression in :meth:HDFStore.select where the where clause on a datetime index silently returned empty results when the index had non-nanosecond resolution (:issue:64310)
  • Fixed regression in :meth:Series.interpolate where limit_direction="both" with limit greater than the Series length raised ValueError (:issue:64322)

.. --------------------------------------------------------------------------- .. _whatsnew_302.bug_fixes:

Bug fixes ^^^^^^^^^

  • :func:col and expressions derived from it failed with power (**) and matrix multiplication (@) operators (:issue:64267)
  • Assigning :attr:pd.NA to a string column could trigger a PyArrow error and corrupt data (:issue:64320)
  • Bug when using :func:col with Python functions :func:bool, :func:iter, :func:copy, and :func:deepcopy either failed or produced incorrect results; these now all raise a TypeError (:issue:64267)
  • Fixed bug in the :meth:~Series.sum method with python-backed string dtype returning incorrect value for an empty Series and ignoring the min_count argument (:issue:64683)
  • Fixed bug where :meth:DataFrame.div ignored the axis argument when used with level for MultiIndex columns (:issue:64428)

.. --------------------------------------------------------------------------- .. _whatsnew_302.contributors:

Contributors


.. contributors:: v3.0.1..v3.0.2|HEAD