说明:以Pandas
官方API文档/docs/reference/index.html
为依据,根据使用频率对次序稍作整理,翻译API功能,计划补充API详细解读。
当前版本:1.3.4
Series
Constructor:构造函数
Attributes:属性
Axes
Conversion:转换
Indexing, iteration:索引,迭代
For more information on.at
,.iat
,.loc
, and.iloc
, see the indexing documentation.
Binary operator functions:二元操作符函数
Function application, GroupBy & window:应用函数、分组和窗口
Computations / descriptive stats:计算,描述性统计
Reindexing / selection / label manipulation:索引/选择/标签操作
Missing data handling:处理缺失值
Reshaping, sorting:重构,排序
Combining / comparing / joining / merging:对比,合并,连接
Time Series-related
Accessors:存取器
pandas provides dtype-specific methods under various accessors. These are separate namespaces withinSeries
that only apply to specific data types.
Datetimelike properties:类日期时间属性
Series.dt
can be used to access the values of the series as datetimelike and return several properties. These can be accessed likeSeries.dt.<property>
.
Series.dt
可以用于获取类日期时间Series的值,并返回若干属性。 These can be accessed likeSeries.dt.<property>
.
Datetime properties:日期时间属性
Datetime methods:日期时间方法
Period properties
Timedelta properties
Timedelta methods
String handling:字符串处理
Series.str
can be used to access the values of the series as strings and apply several methods to it. These can be accessed likeSeries.str.<function/property>
.
Categorical accessor
Categorical-dtype specific methods and attributes are available under theSeries.cat
accessor.
Sparse accessor
Sparse-dtype specific methods and attributes are provided under theSeries.sparse
accessor.
Flags
Flags refer to attributes of the pandas object. Properties of the dataset (like the date is was recorded, the URL it was accessed from, etc.) should be stored inSeries.attrs
.
Metadata:元数据
Series.attrs
is a dictionary for storing global metadata for this Series.
Warning
Series.attrs
is considered experimental and may change without warning.
Plotting:绘图
Series.plot
is both a callable method and a namespace attribute for specific plotting methods of the formSeries.plot.<kind>
.
Serialization / IO / conversion:序列化/IO/转换
如果觉得《Pandas API 文档索引中文翻译版(一)—— Series》对你有帮助,请点赞、收藏,并留下你的观点哦!