Series¶
Constructor
|
Snowpark pandas representation of pandas.Series with a lazily-evaluated relational dataset. |
Attributes
Get the index for this DataFrame. |
|
Return a list of the row axis labels. |
|
Return the ExtensionArray of the data backing this Series or Index. |
|
Return the dtype object of the underlying data. |
|
Return the dtype object of the underlying data. |
|
|
Indicate duplicate Series values. |
Indicator whether the Series is empty. |
|
Return True if there are any NaNs. |
|
Return the name of the Series. |
|
Number of dimensions of the underlying data, by definition 1. |
|
Return a tuple of the shape of the underlying data. |
|
Return an int representing the number of elements in this object. |
|
Return the transpose, which is by definition self. |
|
Return a NumPy representation of the dataset. |
Snowflake Specific
|
Save the Snowpark pandas Series as a Snowflake table. |
|
Convert the Snowpark pandas Series to a Snowpark DataFrame. |
|
Persists the current Snowpark pandas Series to a temporary table to improve the latency of subsequent operations. |
Conversion
|
Cast a pandas object to a specified dtype |
|
Convert columns to best possible dtypes using dtypes supporting |
|
Make a copy of this object's indices and data. |
|
Convert Series to {label -> value} dict or dict-like object. |
Return a list of the values. |
|
|
A NumPy ndarray representing the values in this Series or Index. |
|
Convert Snowpark pandas Series to pandas.Series |
|
Return the values as a NumPy array. |
Indexing, iteration
Purely integer-location based indexing for selection by position. |
|
Access a group of rows and columns by label(s) or a boolean array. |
|
Return an iterator of the values. |
|
Return alias for index. |
Binary operator functions
|
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 Floating division of series and other, element-wise (binary operator truediv). |
|
Return Integer division of series and other, element-wise (binary operator floordiv). |
|
Return Modulo of series and other, element-wise (binary operator mod). |
|
Return Exponential power of series and other, element-wise (binary operator pow). |
|
Return Addition of series and other, element-wise (binary operator radd). |
|
Return Subtraction of series and other, element-wise (binary operator rsub). |
|
Return Multiplication of series and other, element-wise (binary operator rmul). |
|
Return Floating division of series and other, element-wise (binary operator rtruediv). |
|
Return Floating division of series and other, element-wise (binary operator rtruediv). |
|
Return Integer division of series and other, element-wise (binary operator rfloordiv). |
|
Return Modulo of series and other, element-wise (binary operator rmod). |
|
Return Exponential power of series and other, element-wise (binary operator rpow). |
|
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). |
Function application, GroupBy & window
|
Invoke function on values of Series. |
|
Aggregate using one or more operations over the specified axis. |
|
Aggregate using one or more operations over the specified axis. |
|
Call |
|
Map values of Series according to an input mapping or function. |
|
Group Series using a mapper or by a Series of columns. |
|
Provide rolling window calculations. |
Computations / descriptive stats
Return a Series with absolute numeric value of each element. |
|
|
Return whether all elements are True, potentially over an axis. |
|
Return whether any element are True, potentially over an axis. |
Return number of non-NA/null observations in the Series. |
|
|
Return cumulative maximum over a BasePandasDataset axis. |
|
Return cumulative minimum over a BasePandasDataset axis. |
|
Return cumulative sum over a BasePandasDataset axis. |
|
Generate descriptive statistics. |
|
First discrete difference of element. |
|
Return the maximum of the values over the requested axis. |
|
Return the mean of the values over the requested axis. |
|
Return the median of the values over the requested axis. |
|
Return the minimum of the values over the requested axis. |
|
Return value at the given quantile. |
|
Compute numerical data ranks (1 through n) along axis. |
|
Return unbiased skew, normalized over n-1 |
|
Return sample standard deviation over requested axis. |
|
Return the sum of the values over the requested axis. |
|
Return unbiased variance over requested axis. |
Return unique values of Series object. |
|
|
Return number of unique elements in the series. |
Return True if values in the Series are unique. |
|
|
Return a Series containing counts of unique values. |
Reindexing / selection / label manipulation
|
Return Series with specified index labels removed. |
|
Return Series with duplicate values removed. |
|
Get item from object for given key (ex: DataFrame column). |
|
Return the first n rows. |
|
Return the row label of the maximum value. |
|
Return the row label of the minimum value. |
|
Whether elements in Series are contained in values. |
|
Select final periods of time series data based on a date offset. |
|
Alter Series index labels or name. |
|
Set the name of the axis for the index or columns. |
|
Generate a new DataFrame or Series with the index reset. |
|
Return a random sample of items from an axis of object. |
|
Assign desired index to given axis. |
|
Return the elements in the given positional indices along an axis. |
|
Return the last n rows. |
|
Replace values where the condition is False. |
|
Replace values where the condition is True. |
|
Prefix labels with string prefix. |
|
Suffix labels with string suffix. |
Missing data handling
|
Return a new Series with missing values removed. |
|
Synonym for |
|
Fill NA/NaN values using the specified method. |
Detect missing values. |
|
Series.isnull is an alias for Series.isna. |
|
Detect non-missing values for an array-like object. |
|
Detect non-missing values for an array-like object. |
|
|
Synonym for |
|
Replace values given in to_replace with value. |
Reshaping, sorting
|
Sort by the values. |
|
Sort object by labels (along an axis). |
|
Squeeze 1 dimensional axis objects into scalars. |
Combining / comparing / joining / merging
|
Modify Series in place using values from passed Series. |
Time Series-related
|
Shift data by desired number of periods and replace columns with fill_value (default: None). |
Return index for first non-NA value or None, if no non-NA value is found. |
|
Return index for last non-NA value or None, if no non-NA value is found. |
|
|
Resample time-series data. |
Accessors
Vectorized string functions for Series and Index. |
|
Accessor object for datetimelike properties of the Series values. |