1.4.2中的新特性(2022年4月2日)#
这些是Pandas1.4.2中的变化。看见 发行说明 获取完整的更改日志,包括其他版本的Pandas。
固定回归#
修复了中的回归问题
DataFrame.drop()
和Series.drop()
什么时候Index
具有扩展数据类型和重复项 (GH45860 )Fixed regression in
read_csv()
killing python process when invalid file input was given forengine="c"
(GH45957)Fixed memory performance regression in
Series.fillna()
when called on aDataFrame
column withinplace=True
(GH46149)Provided an alternative solution for passing custom Excel formats in
Styler.to_excel()
, which was a regression based on stricter CSS validation. Examples available in the documentation forStyler.format()
(GH46152)修复了中的回归问题
DataFrame.replace()
当替换价值也是替换的目标时 (GH46306 )Fixed regression in
DataFrame.replace()
when the replacement value was explicitlyNone
when passed in a dictionary toto_replace
(GH45601, GH45836)修复了使用设置值时的回归问题
DataFrame.loc()
输掉MultiIndex
姓名(如果有)DataFrame
以前是空的 (GH46317 )Fixed regression when rendering boolean datatype columns with
Styler()
(GH46384)修复了中的回归问题
Groupby.rolling()
具有一个频率窗口,这将提高ValueError
即使每组中的约会时间是单调的 (GH46061 )
错误修复#
修复定义其
_constructor
作为常规可计算对象的属性 (GH46018 )修复了中的“长表”格式
Styler.to_latex()
什么时候column_format
以扩展格式提供 (GH46037 )修复了中的错误渲染
Styler.format()
使用hyperlinks="html"
当url包含冒号或其他特殊字符时 (GH46389 )改进了中的错误消息
Rolling
什么时候window
是一个频率和NaT
在滚动轴上 (GH46087 )
贡献者#
共有15人为此次发布贡献了补丁。名字中带有“+”的人第一次贡献了一个补丁。
Daniel Schmidt
JHM Darbyshire
Jonas Haag
Jordan Hicks +
Joris Van den Bossche
Kian Eliasi +
Luke Manley
Marco Edward Gorelli
Matthew Roeschke
MeeseeksMachine
Pandas Development Team
Patrick Hoefler
Richard Shadrach
Simon Hawkins
jbrockmendel