Series

One-dimensional ndarray with axis labels (including time series).

Series(data, {columns: [ Array ], dtypes: [ Array ], index: [Array]}) [source]

Attributes

Conversion

Indexing, iteration

Binary operator functions

Function application

Computations / descriptive stats

Reindexing / selection / label manipulation

Missing data handling

Logical Comparison

Reshaping, sorting

Accessors

Danfo 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 datetime and return several properties. These can be accessed like Series.dt.<property>.

Datetime 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 like Series.str.<function/property>.

Plotting

Series.plot is both a callable method and a namespace attribute for specific plotting methods of the form Series.plot.<kind>.

Serialization / IO / conversion

Last updated