Series
One-dimensional ndarray with axis labels (including time series).
The index (axis labels) of the Series. |
The Tensorflow tensor of the data backing this Series or Index. | |
Return Series as ndarray or ndarray-like depending on the dtype. | |
Return the dtype object of the underlying data. | |
Return a tuple of the shape of the underlying data. | |
Number of dimensions of the underlying data, by definition 1. | |
Return the number of elements in the underlying data. |
Cast a Series object to a specified dtype | |
Make a copy of this object’s indices and data. |
[`Series.loc`](series.loc.md) | Access a group of rows and columns by label(s) or a boolean array. |
Purely integer-location based indexing for selection by position. |
Return Addition of series and other, element-wise (binary operator add). | |
Return Subtraction of series and other, element-wise (binary operator sub). | |
Return Multiplication of series and other, element-wise (binary operator mul). | |
Return Floating division of series and other, element-wise (binary operator truediv). | |
Return Modulo of series and other, element-wise (binary operator mod). | |
Return Exponential power of series and other, element-wise (binary operator pow). | |
Round each value in a Series to the given number of decimals. | |
Return Less than of series and other, element-wise (binary operator lt). | |
Return Greater than of series and other, element-wise (binary operator gt). | |
Return Less than or equal to of series and other, element-wise (binary operator le). | |
Return Greater than or equal to of series and other, element-wise (binary operator ge). | |
Return Not equal to of series and other, element-wise (binary operator ne). | |
Return Equal to of series and other, element-wise (binary operator eq). |
Invoke function on values of Series. | |
Map values of Series according to input correspondence. |
Return a Series with absolute numeric value of each element. | |
Compute correlation with other Series, excluding missing values. | |
Return number of non-NaN observations in the Series. | |
Return cumulative maximum over a DataFrame or Series axis. | |
Return cumulative minimum over a DataFrame or Series axis. | |
Return cumulative product over a DataFrame or Series axis. | |
Return cumulative sum over a DataFrame or Series axis. | |
Generate descriptive statistics. | |
Return the maximum of the values for the requested axis. | |
Return the mean of the values for the requested axis. | |
Return the median of the values for the requested axis. | |
Return the minimum of the values for the requested axis. | |
Return the mode(s) of the dataset. | |
Return sample standard deviation over requested axis. | |
Return the sum of the values for the requested axis. | |
Return unbiased variance over requested axis. | |
Return unique values of Series object. | |
Return number of unique elements in the object. | |
Return a Series containing counts of unique values. |
Return Series with duplicate values removed. | |
Return the first n rows. | |
Generate a new DataFrame or Series with the index reset. | |
Return a random sample of items from an axis of object. | |
Return the last n rows. |
Return a new Series with missing values removed. | |
Fill NaN values using the specified method. | |
Detect missing values. | |
Replace values given in to_replace with value. |
Returns the logical OR between Series and other. Supports element-wise operations and broadcasting. | |
Returns the logical AND between Series and other. Supports element-wise operations and broadcasting. |
Return the integer indices that would sort the Series values. | |
Return int position of the smallest value in the Series. | |
Return int position of the largest value in the Series. | |
Sort by the values. |
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
The year of the datetime. | |
Returns a numeric representation of the month. January=0 - December=11. | |
| |
Returns the day of the week, in local time | |
The hours of the datetime. | |
The minutes of the datetime. | |
The seconds of the datetime. | |
Returns the name of the day, of the week, in local time | |
Returns the day of the month, in local time |
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>
.Capitalize the first character of each string | |
Converts all characters to uppercase. | |
Converts all characters to lowercase. | |
Returns the character at the specified index (position). | |