What’s new in 1.0.2 (March 12, 2020) — pandas 2.2.3 documentation (original) (raw)

These are the changes in pandas 1.0.2. See Release notes for a full changelog including other versions of pandas.

Fixed regressions#

Groupby

I/O

Reindexing/alignment

Other

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. (GH 31503)

In [1]: s = pd.Series([1, 2, 3, 4])

In [2]: mask = pd.array([True, True, False, None], dtype="boolean")

In [3]: s Out[3]: 0 1 1 2 2 3 3 4 Length: 4, dtype: int64

In [4]: mask Out[4]: [True, True, False, ] Length: 4, dtype: boolean

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

In [5]: s[mask] Out[5]: 0 1 1 2 Length: 2, dtype: int64

Bug fixes#

Datetimelike

Categorical

I/O

Experimental dtypes

Strings

Rolling

Contributors#

A total of 25 people contributed patches to this release. People with a “+” by their names contributed a patch for the first time.