description
One-dimensional ndarray with axis labels (including time series).
Series
(data, {columns: [ Array ], dtypes: [ Array ], index: [Array]}) [source ]
Series.tensor
The Tensorflow tensor of the data backing this Series or Index.
Series.values
Return Series as ndarray or ndarray-like depending on the dtype.
Series.dtype
Return the dtype object of the underlying data.
Series.shape
Return a tuple of the shape of the underlying data.
Series.ndim
Number of dimensions of the underlying data, by definition 1.
Series.size
Return the number of elements in the underlying data.
[`Series.loc`](series.loc.md)
Access a group of rows and columns by label(s) or a boolean array.
Series.iloc
Purely integer-location based indexing for selection by position.
Binary operator functions
Series.add
Return Addition of series and other, element-wise (binary operator add).
Series.sub
Return Subtraction of series and other, element-wise (binary operator sub).
Series.mul
Return Multiplication of series and other, element-wise (binary operator mul).
Series.div
Return Floating division of series and other, element-wise (binary operator truediv).
Series.mod
Return Modulo of series and other, element-wise (binary operator mod).
Series.pow
Return Exponential power of series and other, element-wise (binary operator pow).
Series.round
Round each value in a Series to the given number of decimals.
Series.lt
Return Less than of series and other, element-wise (binary operator lt).
Series.gt
Return Greater than of series and other, element-wise (binary operator gt).
Series.le
Return Less than or equal to of series and other, element-wise (binary operator le).
Series.ge
Return Greater than or equal to of series and other, element-wise (binary operator ge).
Series.ne
Return Not equal to of series and other, element-wise (binary operator ne).
Series.eq
Return Equal to of series and other, element-wise (binary operator eq).
Series.apply
Invoke function on values of Series.
Series.map
Map values of Series according to input correspondence.
Computations / descriptive stats
Series.abs
Return a Series with absolute numeric value of each element.
Series.corr
Compute correlation with other Series, excluding missing values.
Series.count
Return number of non-NaN observations in the Series.
Series.cumMax
Return cumulative maximum over a DataFrame or Series axis.
Series.cumMin
Return cumulative minimum over a DataFrame or Series axis.
Series.cumProd
Return cumulative product over a DataFrame or Series axis.
Series.cumSum
Return cumulative sum over a DataFrame or Series axis.
Series.describe
Generate descriptive statistics.
Series.max
Return the maximum of the values for the requested axis.
Series.mean
Return the mean of the values for the requested axis.
Series.median
Return the median of the values for the requested axis.
Series.min
Return the minimum of the values for the requested axis.
Series.mode
Return the mode(s) of the dataset.
Series.std
Return sample standard deviation over requested axis.
Series.sum
Return the sum of the values for the requested axis.
Series.var
Return unbiased variance over requested axis.
Series.unique
Return unique values of Series object.
Series.nUnique
Return number of unique elements in the object.
Series.valueCounts
Return a Series containing counts of unique values.
Reindexing / selection / label manipulation
Series.or
Returns the logical OR between Series and other. Supports element-wise operations and broadcasting.
Series.and
Returns the logical AND between Series and other. Supports element-wise operations and broadcasting.
Danfo provides dtype-specific methods under various accessors. These are separate namespaces within Series
that only apply to specific data types.
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
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>
.
Series.plot
is both a callable method and a namespace attribute for specific plotting methods of the form Series.plot.<kind>
.
Serialization / IO / conversion
Series.toCSV
Convert DataFrame or Series to CSV.
Series.toJSON
Convert DataFrame or Series to a JSON.
Series.toExcel
Convert DataFrame or Series to an excel file