DataFrame¶
Constructor
  | 
Snowpark pandas representation of   | 
Attributes
Get the index for this Series/DataFrame.  | 
|
Get the columns for this   | 
|
Return the dtypes in the   | 
|
  | 
Print a concise summary of the   | 
  | 
Return a subset of the   | 
Return a NumPy representation of the dataset.  | 
|
Return a list representing the axes of the DataFrame.  | 
|
Return the number of dimensions of the underlying data, by definition 2.  | 
|
Return an int representing the number of elements in this object.  | 
|
Return a tuple representing the dimensionality of the   | 
|
Indicator whether the DataFrame is empty.  | 
Snowflake Specific
Convert Modin   | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
  | 
|
Get the backend for this   | 
|
  | 
Move the data in this   | 
  | 
Move the data in this   | 
  | 
Pin the object's underlying data, preventing Modin from automatically moving it to another backend.  | 
  | 
Unpin the object's underlying data, allowing Modin to automatically move it to another backend.  | 
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.  | 
Indexing, iteration
  | 
Assign new columns to a   | 
  | 
Return the first n rows.  | 
Access a group of rows and columns by label(s) or a boolean array.  | 
|
Purely integer-location based indexing for selection by position.  | 
|
  | 
Insert column into DataFrame at specified location.  | 
Iterate over info axis.  | 
|
Get columns of the   | 
|
Iterate over   | 
|
Iterate over (column name,   | 
|
  | 
Iterate over DataFrame rows as namedtuples.  | 
  | 
Return the last n rows.  | 
  | 
Whether each element in the DataFrame is contained in values.  | 
  | 
Replace values where the condition is False.  | 
  | 
Replace values where the condition is True.  | 
Binary operator functions
  | 
Get addition of   | 
  | 
Get subtraction of   | 
  | 
Get multiplication of   | 
  | 
Get floating division of   | 
  | 
Get floating division of   | 
  | 
Get integer division of   | 
  | 
Get modulo of   | 
  | 
Get exponential power of   | 
  | 
Get addition of   | 
  | 
Get subtraction of   | 
  | 
Get multiplication of   | 
  | 
Get floating division of   | 
  | 
Get floating division of   | 
  | 
Get integer division of   | 
  | 
Get modulo of   | 
  | 
Get exponential power of   | 
  | 
Get less than comparison of   | 
  | 
Get greater than comparison of   | 
  | 
Get less than or equal comparison of   | 
  | 
Get greater than or equal comparison of   | 
  | 
Get not equal comparison of   | 
  | 
Perform equality comparison of   | 
Function application, GroupBy & window
  | 
Apply a function along an axis of the DataFrame.  | 
  | 
Apply a function to a Dataframe elementwise.  | 
  | 
Aggregate using one or more operations over the specified axis.  | 
  | 
Aggregate using one or more operations over the specified axis.  | 
  | 
Call   | 
  | 
Group DataFrame using a mapper or by a Series of columns.  | 
  | 
Provide rolling window calculations.  | 
Computations / descriptive stats
Return a DataFrame 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.  | 
  | 
Count non-NA cells for each column or row.  | 
  | 
Return cumulative maximum over a BasePandasDataset axis.  | 
  | 
Return cumulative minimum over a BasePandasDataset axis.  | 
  | 
Return cumulative sum over a BasePandasDataset axis.  | 
  | 
Generate descriptive statistics for columns in the dataset.  | 
  | 
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.  | 
  | 
Fractional change between the current and a prior element.  | 
  | 
Return values at the given quantile over requested axis.  | 
  | 
Compute numerical data ranks (1 through n) along axis.  | 
  | 
Round a DataFrame to a variable number of decimal places.  | 
  | 
Return unbiased skew, normalized over n-1  | 
  | 
Return the sum of the values over the requested axis.  | 
  | 
Return sample standard deviation over requested axis.  | 
  | 
Return unbiased variance over requested axis.  | 
  | 
Count number of distinct elements in specified axis.  | 
  | 
Return a Series containing the frequency of each distinct row in the Dataframe.  | 
Reindexing / selection / label manipulation
  | 
Prefix labels with string prefix.  | 
  | 
Suffix labels with string suffix.  | 
  | 
Drop specified labels from rows or columns.  | 
  | 
Return   | 
  | 
Return boolean Series denoting duplicate rows.  | 
  | 
Test whether two dataframes contain the same elements.  | 
  | 
Select initial periods of time series data based on a date offset.  | 
  | 
Get item from object for given key (ex: DataFrame column).  | 
  | 
Return the first n rows.  | 
  | 
Return index of first occurrence of maximum over requested axis.  | 
  | 
Return index of first occurrence of minimum over requested axis.  | 
  | 
Select final periods of time series data based on a date offset.  | 
  | 
Rename columns or index labels.  | 
  | 
Set the name of the axis for the index or columns.  | 
  | 
Reset the index, or a level of it.  | 
  | 
Return a random sample of items from an axis of object.  | 
  | 
Assign desired index to given axis.  | 
  | 
Set the DataFrame index using existing columns.  | 
  | 
Return the last n rows.  | 
  | 
Return the elements in the given positional indices along an axis.  | 
Missing data handling
  | 
Synonym for DataFrame.fillna with   | 
  | 
Fill NA/NaN values by using the next valid observation to fill the gap.  | 
  | 
Remove missing values.  | 
  | 
Fill NA/NaN values by propagating the last valid observation to next valid.  | 
  | 
Fill NA/NaN values using the specified method.  | 
Detect missing values.  | 
|
DataFrame.isnull is an alias for DataFrame.isna.  | 
|
Detect non-missing values for an array-like object.  | 
|
Detect non-missing values for an array-like object.  | 
|
  | 
Fill NA/NaN values by propagating the last valid observation to next valid.  | 
  | 
Replace values given in to_replace with value.  | 
Reshaping, sorting, transposing
  | 
Unpivot a   | 
  | 
Return the first n rows ordered by columns in descending order.  | 
  | 
Return the first n rows ordered by columns in ascending order.  | 
  | 
Return reshaped DataFrame organized by given index / column values.  | 
  | 
Create a spreadsheet-style pivot table as a   | 
  | 
Sort object by labels (along an axis).  | 
  | 
Return the first n rows ordered by columns in descending order.  | 
  | 
Return the first n rows ordered by columns in ascending order.  | 
  | 
Unpivot a   | 
  | 
Sort by the values along either axis.  | 
  | 
Squeeze 1 dimensional axis objects into scalars.  | 
  | 
Stack the prescribed level(s) from columns to index.  | 
Transpose index and columns.  | 
|
  | 
Transpose index and columns.  | 
  | 
Pivot a level of the (necessarily hierarchical) index labels.  | 
Combining / comparing / joining / merging
  | 
Compare to another DataFrame and show the differences.  | 
  | 
Join columns of another DataFrame.  | 
  | 
Merge DataFrame or named Series objects with a database-style join.  | 
  | 
Modify in place using non-NA values from another   | 
Time Series-related
  | 
Shift data by desired number of periods along axis 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.  | 
Plotting
  | 
Make a box plot from DataFrame columns.  | 
Serialization / IO / conversion
  | 
Write object to a comma-separated values (csv) file.  | 
  | 
Write object to an Excel sheet.  | 
  | 
Render a   | 
  | 
Render a DataFrame to a console-friendly tabular output.  |