Series — pandas 3.0.0.dev0+2097.gcdc5b7418e documentation (original) (raw)
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#
Accessors#
pandas provides dtype-specific methods under various accessors. These are separate namespaces within Series 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 like Series.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 the Series.cat
accessor.
Sparse accessor#
Sparse-dtype specific methods and attributes are provided under theSeries.sparse
accessor.
List accessor#
Arrow list-dtype specific methods and attributes are provided under theSeries.list
accessor.
Struct accessor#
Arrow struct-dtype specific methods and attributes are provided under theSeries.struct
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 in Series.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 form Series.plot.<kind>
.