1.4.1中的新特性(2022年2月12日)#
这些是Pandas1.4.1中的变化。看见 发行说明 获取完整的更改日志,包括其他版本的Pandas。
固定回归#
回归到
Series.mask()
使用inplace=True
和PeriodDtype
和一个不兼容的other
强制转换为公共数据类型,而不是引发 (GH45546 )Regression in
assert_frame_equal()
not respectingcheck_flags=False
(GH45554)回归到
DataFrame.loc()
加薪ValueError
索引(获取值)时MultiIndex
只有一个级别 (GH45779 )回归到
Series.fillna()
使用downcast=False
错误地向下投射object
数据类型 (GH45603 )Regression in
api.types.is_bool_dtype()
raising anAttributeError
when evaluating a categoricalSeries
(GH45615)回归到
DataFrame.iat()
设置导致在后续查找中无法正确传播的值 (GH45684 )使用设置值时的回归
DataFrame.loc()
输掉Index
如果是,则命名DataFrame
以前是空的 (GH45621 )Regression in
join()
with overlappingIntervalIndex
raising anInvalidIndexError
(GH45661)使用设置值时的回归
Series.loc()
与所有人一起提高False
索引器和Series
在右手边 (GH45778 )回归到
read_sql()
其DBAPI2连接不是sqlite3.Connection
不正确地要求安装SQLAlChemy (GH45660 )Regression in
DateOffset
when constructing with an integer argument with no keywords (e.g.pd.DateOffset(n)
) would behave likedatetime.timedelta(days=0)
(GH45643, GH45890)
错误修复#
修复了中的分段故障
DataFrame.to_json()
当在Python3.10中转储支持TZ的日期时间时 (GH42130 )停止了不必要的排放
FutureWarning
在……里面DataFrame.sort_values()
具有稀疏列 (GH45618 )修复了中的窗口聚合
DataFrame.rolling()
和Series.rolling()
跳过未使用的元素 (GH45647 )Bug in
apply()
withaxis=1
raising an erroneousValueError
(GH45912)
其他#
恢复的性能加速比
DataFrame.corr()
为method=pearson
修复精确回归的步骤 (GH45640 , GH42761 )
贡献者#
共有19人为此次发布贡献了补丁。名字中带有“+”的人第一次贡献了一个补丁。
Adam Bowden +
JHM Darbyshire
Johannes Mueller
John Zangwill
Jonas Haag
Matthew Roeschke
MeeseeksMachine
Pandas Development Team
Patrick Hoefler
Robbie Palmer +
Simon Hawkins
Thomas Li
Tyler Reddy
eshirvana +
gesoos +
hasan-yaman
jbrockmendel
partev
rtpsw +