Skip to content

Latest commit

 

History

History
95 lines (63 loc) · 4 KB

v1.0.2.rst

File metadata and controls

95 lines (63 loc) · 4 KB

What's new in 1.0.2 (February ??, 2020)

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

{{ header }}

Fixed regressions

Indexing with Nullable Boolean Arrays

Previously indexing with a nullable Boolean array containing NA would raise a ValueError, however this is now permitted with NA being treated as False. (:issue:`31503`)

.. ipython:: python

    s = pd.Series([1, 2, 3, 4])
    mask = pd.array([True, True, False, None], dtype="boolean")
    s
    mask

pandas 1.0.0-1.0.1

>>> s[mask]
Traceback (most recent call last):
...
ValueError: cannot mask with array containing NA / NaN values

pandas 1.0.2

.. ipython:: python

    s[mask]

Bug fixes

Datetimelike

Categorical

I/O

  • Using pd.NA with :meth:`DataFrame.to_json` now correctly outputs a null value instead of an empty object (:issue:`31615`)
  • Fixed pickling of pandas.NA. Previously a new object was returned, which broke computations relying on NA being a singleton (:issue:`31847`)
  • Fixed bug in parquet roundtrip with nullable unsigned integer dtypes (:issue:`31896`).

Experimental dtypes

Contributors

.. contributors:: v1.0.1..v1.0.2|HEAD