What’s new in 1.0.4 (May 28, 2020)#
These are the changes in pandas 1.0.4. See Release notes for a full changelog including other versions of pandas.
Fixed regressions#
Fix regression where
Series.isna()
andDataFrame.isna()
would raise for categorical dtype whenpandas.options.mode.use_inf_as_na
was set toTrue
(GH 33594)Fix regression in
DataFrameGroupBy.first()
,SeriesGroupBy.first()
,DataFrameGroupBy.last()
, andSeriesGroupBy.last()
where None is not preserved in object dtype (GH 32800)Fix regression in DataFrame reductions using
numeric_only=True
and ExtensionArrays (GH 33256).Fix performance regression in
memory_usage(deep=True)
for object dtype (GH 33012)Fix regression where
Categorical.replace()
would replace withNaN
whenever the new value and replacement value were equal (GH 33288)Fix regression where an ordered
Categorical
containing onlyNaN
values would raise rather than returningNaN
when taking the minimum or maximum (GH 33450)Fix regression in
DataFrameGroupBy.agg()
with dictionary input losingExtensionArray
dtypes (GH 32194)Fix to preserve the ability to index with the “nearest” method with xarray’s CFTimeIndex, an
Index
subclass (pydata/xarray#3751, GH 32905).Fix regression in
DataFrame.describe()
raisingTypeError: unhashable type: 'dict'
(GH 32409)Fix regression in
DataFrame.replace()
casts columns toobject
dtype if items into_replace
not in values (GH 32988)Fix regression in
Series.groupby()
would raiseValueError
when grouping byPeriodIndex
level (GH 34010)Fix regression in
DataFrameGroupBy.rolling.apply()
andSeriesGroupBy.rolling.apply()
ignoring args and kwargs parameters (GH 33433)Fix regression in error message with
np.min
ornp.max
on unorderedCategorical
(GH 33115)Fix regression in
DataFrame.loc()
andSeries.loc()
throwing an error when adatetime64[ns, tz]
value is provided (GH 32395)
Bug fixes#
Bug in
SeriesGroupBy.first()
,SeriesGroupBy.last()
,SeriesGroupBy.min()
, andSeriesGroupBy.max()
returning floats when applied to nullable Booleans (GH 33071)Bug in
Rolling.min()
andRolling.max()
: Growing memory usage after multiple calls when using a fixed window (GH 30726)Bug in
to_parquet()
was not raisingPermissionError
when writing to a private s3 bucket with invalid creds. (GH 27679)Bug in
to_csv()
was silently failing when writing to an invalid s3 bucket. (GH 32486)Bug in
read_parquet()
was raising aFileNotFoundError
when passed an s3 directory path. (GH 26388)Bug in
to_parquet()
was throwing anAttributeError
when writing a partitioned parquet file to s3 (GH 27596)Bug in
DataFrameGroupBy.quantile()
andSeriesGroupBy.quantile()
causes the quantiles to be shifted when theby
axis containsNaN
(GH 33200, GH 33569)
Contributors#
A total of 18 people contributed patches to this release. People with a “+” by their names contributed a patch for the first time.
Daniel Saxton
JDkuba +
Joris Van den Bossche
Kaiqi Dong
Mabel Villalba
MeeseeksMachine
MomIsBestFriend
Pandas Development Team
Simon Hawkins
Spencer Clark +
Tom Augspurger
Vikas Pandey +
alimcmaster1
h-vishal +
jbrockmendel
mproszewska +
neilkg +
rebecca-palmer +