没有合适的资源?快使用搜索试试~ 我知道了~
首页pandas官方手册下载
pandas官方手册下载
4星 · 超过85%的资源 需积分: 46 429 下载量 76 浏览量
更新于2023-03-16
评论 3
收藏 12.06MB PDF 举报
pandas官方手册下载地址,最权威的pandas学习手册。 Python Data Analysis Library 或 pandas 是基于NumPy 的一种工具,该工具是为了解决数据分析任务而创建的。Pandas 纳入了大量库和一些标准的数据模型,提供了高效地操作大型数据集所需的工具。pandas提供了大量能使我们快速便捷地处理数据的函数和方法。你很快就会发现,它是使Python成为强大而高效的数据分析环境的重要因素之一。
资源详情
资源评论
资源推荐
pandas: powerful Python data analysis
toolkit
Release 0.19.1
Wes McKinney & PyData Development Team
Nov 03, 2016
CONTENTS
1 What’s New 3
1.1 v0.19.1 (November 3, 2016) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.1.1 Performance Improvements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.1.2 Bug Fixes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3
1.2 v0.19.0 (October 2, 2016) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
1.2.1 New features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
merge_asof for asof-style time-series joining . . . . . . . . . . . . . . . . . . . . . . . . 6
.rolling() is now time-series aware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
read_csv has improved support for duplicate column names . . . . . . . . . . . . . . . . . 10
read_csv supports parsing Categorical directly . . . . . . . . . . . . . . . . . . . . . 11
Categorical Concatenation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 12
Semi-Month Offsets . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
New Index methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Google BigQuery Enhancements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Fine-grained numpy errstate . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
get_dummies now returns integer dtypes . . . . . . . . . . . . . . . . . . . . . . . . . . . 15
Downcast values to smallest possible dtype in to_numeric . . . . . . . . . . . . . . . . . 15
pandas development API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 16
Other enhancements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17
1.2.2 API changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 19
Series.tolist() will now return Python types . . . . . . . . . . . . . . . . . . . . . . 19
Series operators for different indexes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Series type promotion on assignment . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
.to_datetime() changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Merging changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 24
.describe() changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Period changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 26
Index + / - no longer used for set operations . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Index.difference and .symmetric_difference changes . . . . . . . . . . . . . 29
Index.unique consistently returns Index . . . . . . . . . . . . . . . . . . . . . . . . . 29
MultiIndex constructors, groupby and set_index preserve categorical dtypes . . . . 30
read_csv will progressively enumerate chunks . . . . . . . . . . . . . . . . . . . . . . . . 31
Sparse Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 32
Indexer dtype changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 34
Other API Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 35
1.2.3 Deprecations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 36
1.2.4 Removal of prior version deprecations/changes . . . . . . . . . . . . . . . . . . . . . . . . 37
1.2.5 Performance Improvements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
1.2.6 Bug Fixes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38
1.3 v0.18.1 (May 3, 2016) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 44
i
1.3.1 New features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
Custom Business Hour . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 45
.groupby(..) syntax with window and resample operations . . . . . . . . . . . . . . . . 45
Method chaininng improvements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 47
Partial string indexing on DateTimeIndex when part of a MultiIndex . . . . . . . . . . 49
Assembling Datetimes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 50
Other Enhancements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 51
1.3.2 Sparse changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 52
1.3.3 API changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
.groupby(..).nth() changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 53
numpy function compatibility . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Using .apply on groupby resampling . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55
Changes in read_csv exceptions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 56
to_datetime error changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Other API changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 57
Deprecations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
1.3.4 Performance Improvements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
1.3.5 Bug Fixes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 58
1.4 v0.18.0 (March 13, 2016) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 61
1.4.1 New features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Window functions are now methods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 63
Changes to rename . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Range Index . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 65
Changes to str.extract . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 66
Addition of str.extractall . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 67
Changes to str.cat . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Datetimelike rounding . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 68
Formatting of Integers in FloatIndex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
Changes to dtype assignment behaviors . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 70
to_xarray . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
Latex Representation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 72
pd.read_sas() changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
Other enhancements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
1.4.2 Backwards incompatible API changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73
NaT and Timedelta operations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 74
Changes to msgpack . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Signature change for .rank . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75
Bug in QuarterBegin with n=0 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 76
Resample API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77
Changes to eval . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 81
Other API Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 83
Deprecations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 85
Removal of deprecated float indexers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 86
Removal of prior version deprecations/changes . . . . . . . . . . . . . . . . . . . . . . . . . 88
1.4.3 Performance Improvements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
1.4.4 Bug Fixes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 89
1.5 v0.17.1 (November 21, 2015) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
1.5.1 New features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
Conditional HTML Formatting . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 92
1.5.2 Enhancements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 93
1.5.3 API changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 94
Deprecations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
1.5.4 Performance Improvements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
1.5.5 Bug Fixes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 95
ii
1.6 v0.17.0 (October 9, 2015) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 97
1.6.1 New features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Datetime with TZ . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 99
Releasing the GIL . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Plot submethods . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 100
Additional methods for dt accessor . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 101
Period Frequency Enhancement . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Support for SAS XPORT files . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Support for Math Functions in .eval() . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 103
Changes to Excel with MultiIndex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 104
Google BigQuery Enhancements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 105
Display Alignment with Unicode East Asian Width . . . . . . . . . . . . . . . . . . . . . . . 106
Other enhancements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 106
1.6.2 Backwards incompatible API changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
Changes to sorting API . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 110
Changes to to_datetime and to_timedelta . . . . . . . . . . . . . . . . . . . . . . . . . . . . 111
Changes to Index Comparisons . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 112
Changes to Boolean Comparisons vs. None . . . . . . . . . . . . . . . . . . . . . . . . . . . 113
HDFStore dropna behavior . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 114
Changes to display.precision option . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Changes to Categorical.unique . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 115
Changes to bool passed as header in Parsers . . . . . . . . . . . . . . . . . . . . . . . . . 116
Other API Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 116
Deprecations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 117
Removal of prior version deprecations/changes . . . . . . . . . . . . . . . . . . . . . . . . . 118
1.6.3 Performance Improvements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
1.6.4 Bug Fixes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 119
1.7 v0.16.2 (June 12, 2015) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
1.7.1 New features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
Pipe . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 123
Other Enhancements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
1.7.2 API Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
1.7.3 Performance Improvements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
1.7.4 Bug Fixes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 125
1.8 v0.16.1 (May 11, 2015) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 126
1.8.1 Enhancements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
CategoricalIndex . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 127
Sample . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 129
String Methods Enhancements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 130
Other Enhancements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 132
1.8.2 API changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
Deprecations . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
1.8.3 Index Representation . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133
1.8.4 Performance Improvements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
1.8.5 Bug Fixes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135
1.9 v0.16.0 (March 22, 2015) . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 137
1.9.1 New features . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
DataFrame Assign . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 138
Interaction with scipy.sparse . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 140
String Methods Enhancements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 141
Other enhancements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 142
1.9.2 Backwards incompatible API changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
Changes in Timedelta . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 143
Indexing Changes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 144
iii
剩余1942页未读,继续阅读
Dr_Joker
- 粉丝: 1
- 资源: 4
上传资源 快速赚钱
- 我的内容管理 收起
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
会员权益专享
最新资源
- zigbee-cluster-library-specification
- JSBSim Reference Manual
- c++校园超市商品信息管理系统课程设计说明书(含源代码) (2).pdf
- 建筑供配电系统相关课件.pptx
- 企业管理规章制度及管理模式.doc
- vb打开摄像头.doc
- 云计算-可信计算中认证协议改进方案.pdf
- [详细完整版]单片机编程4.ppt
- c语言常用算法.pdf
- c++经典程序代码大全.pdf
- 单片机数字时钟资料.doc
- 11项目管理前沿1.0.pptx
- 基于ssm的“魅力”繁峙宣传网站的设计与实现论文.doc
- 智慧交通综合解决方案.pptx
- 建筑防潮设计-PowerPointPresentati.pptx
- SPC统计过程控制程序.pptx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论7