用户指南#

用户指南涵盖了 pandas 的所有主题领域。每个子部分都介绍一个主题(例如“处理缺失数据”),并讨论 pandas 如何处理该问题,其中包含许多示例。

Users brand-new to pandas should start with 10 分钟上手 pandas.

For a high level summary of the pandas fundamentals, see 数据结构简介 and 基本功能.

Further information on any specific method can be obtained in the API 参考.

如何阅读这些指南#

在这些指南中,您将在代码块中看到输入代码,例如:

import pandas as pd
pd.DataFrame({'A': [1, 2, 3]})

或者:

第一个块是标准的 Python 输入,而在第二个块中,In [1]: 表示输入位于 notebook 中。在 Jupyter Notebook 中,最后一行会被打印出来,并且图表会内联显示。

例如:

等价于:

a = 1
print(a)

指南#