These are the changes in pandas 1.0.2. See :ref:`release` for a full changelog including other versions of pandas.
{{ header }}
- Fixed regression in :meth:`DataFrame.to_excel` when
columns
kwarg is passed (:issue:`31677`) - Fixed regression in :meth:`Series.align` when
other
is a DataFrame andmethod
is not None (:issue:`31785`) - Fixed regression in :meth:`pandas.core.groupby.RollingGroupby.apply` where the
raw
parameter was ignored (:issue:`31754`) - Fixed regression in :meth:`rolling(..).corr() <pandas.core.window.Rolling.corr>` when using a time offset (:issue:`31789`)
- Fixed regression where :func:`read_pickle` raised a
UnicodeDecodeError
when reading a py27 pickle with :class:`MultiIndex` column (:issue:`31988`). - Fixed regression in :class:`DataFrame` arithmetic operations with mis-matched columns (:issue:`31623`)
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]
Categorical
- Fixed bug where :meth:`Categorical.from_codes` improperly raised a
ValueError
when passed nullable integer codes. (:issue:`31779`) - Bug in :class:`Categorical` that would ignore or crash when calling :meth:`Series.replace` with a list-like
to_replace
(:issue:`31720`)
I/O
- Using
pd.NA
with :meth:`DataFrame.to_json` now correctly outputs a null value instead of an empty object (:issue:`31615`) - Fixed bug in parquet roundtrip with nullable unsigned integer dtypes (:issue:`31896`).
Experimental dtypes
- Fix bug in :meth:`DataFrame.convert_dtypes` for columns that were already using the
"string"
dtype (:issue:`31731`). - Fixed bug in setting values using a slice indexer with string dtype (:issue:`31772`)
- Fix bug in :meth:`Series.convert_dtypes` for series with mix of integers and strings (:issue:`32117`)
.. contributors:: v1.0.1..v1.0.2|HEAD