DataFrame#
Constructor#
|
A GPU Dataframe object. |
Attributes and underlying data#
Axes
Return a list representing the axes of the DataFrame. |
|
Get the labels for the rows. |
|
Returns a tuple of columns |
Return the dtypes in this object. |
|
|
Print a concise summary of a DataFrame. |
|
Return a subset of the DataFrame's columns based on the column dtypes. |
Return a CuPy representation of the DataFrame. |
|
Dimension of the data. |
|
Return the number of elements in the underlying data. |
|
Returns a tuple representing the dimensionality of the DataFrame. |
|
|
Return the memory usage of an object. |
Indicator whether DataFrame or Series is empty. |
Conversion#
|
Cast the object to the given dtype. |
|
Convert columns to the best possible nullable dtypes. |
|
Make a copy of this object's indices and data. |
Indexing, iteration#
|
Return the first n rows. |
Alias for |
|
Alias for |
|
Select rows and columns by label or boolean mask. |
|
Select values by position. |
|
|
Add a column to DataFrame at the index specified by loc. |
Iterate over column names and series pairs |
|
Get the columns. |
|
Iteration is unsupported. |
|
|
Iteration is unsupported. |
|
Return a column and drop it from the DataFrame. |
|
Returns the last n rows as a new DataFrame or Series |
|
Whether each element in the DataFrame is contained in values. |
|
Squeeze 1 dimensional axis objects into scalars. |
|
Replace values where the condition is False. |
|
Replace values where the condition is True. |
|
Query with a boolean expression using Numba to compile a GPU kernel. |
Binary operator functions#
|
Get Addition of DataFrame or Series and other, element-wise (binary operator add). |
|
Get Subtraction of DataFrame or Series and other, element-wise (binary operator sub). |
|
Get Subtraction of DataFrame or Series and other, element-wise (binary operator sub). |
|
Get Multiplication of DataFrame or Series and other, element-wise (binary operator mul). |
|
Get Multiplication of DataFrame or Series and other, element-wise (binary operator mul). |
|
Get Floating division of DataFrame or Series and other, element-wise (binary operator truediv). |
|
Get Floating division of DataFrame or Series and other, element-wise (binary operator truediv). |
|
Get Floating division of DataFrame or Series and other, element-wise (binary operator truediv). |
|
Get Integer division of DataFrame or Series and other, element-wise (binary operator floordiv). |
|
Get Modulo of DataFrame or Series and other, element-wise (binary operator mod). |
|
Get Exponential of DataFrame or Series and other, element-wise (binary operator pow). |
|
Get dot product of frame and other, (binary operator dot). |
|
Get Addition of DataFrame or Series and other, element-wise (binary operator radd). |
|
Get Subtraction of DataFrame or Series and other, element-wise (binary operator rsub). |
|
Get Multiplication of DataFrame or Series and other, element-wise (binary operator rmul). |
|
Get Floating division of DataFrame or Series and other, element-wise (binary operator rtruediv). |
|
Get Floating division of DataFrame or Series and other, element-wise (binary operator rtruediv). |
|
Get Integer division of DataFrame or Series and other, element-wise (binary operator rfloordiv). |
|
Get Modulo of DataFrame or Series and other, element-wise (binary operator rmod). |
|
Get Exponential of DataFrame or Series and other, element-wise (binary operator rpow). |
|
Round to a variable number of decimal places. |
|
Get Less than of DataFrame or Series and other, element-wise (binary operator lt). |
|
Get Greater than of DataFrame or Series and other, element-wise (binary operator gt). |
|
Get Less than or equal to of DataFrame or Series and other, element-wise (binary operator le). |
|
Get Greater than or equal to of DataFrame or Series and other, element-wise (binary operator ge). |
|
Get Not equal to of DataFrame or Series and other, element-wise (binary operator ne). |
|
Get Equal to of DataFrame or Series and other, element-wise (binary operator eq). |
|
Return product of the values in the DataFrame. |
Function application, GroupBy & window#
|
Aggregate using one or more operations over the specified axis. |
|
Apply a function along an axis of the DataFrame. |
|
Apply a function to a Dataframe elementwise. |
|
Transform user-specified chunks using the user-provided function. |
|
Apply a row-wise user defined function. |
|
Group using a mapper or by a Series of columns. |
|
Apply a function to a Dataframe elementwise. |
|
Apply |
|
Rolling window calculations. |
Computations / descriptive stats#
Return a Series/DataFrame with absolute numeric value of each element. |
|
|
Return whether all elements are True in DataFrame. |
|
Return whether any elements is True in DataFrame. |
|
Trim values at input threshold(s). |
|
Compute the correlation matrix of a DataFrame. |
|
Count |
|
Compute the covariance matrix of a DataFrame. |
|
Return cumulative max of the IndexedFrame. |
|
Return cumulative min of the IndexedFrame. |
|
Return cumulative product of the IndexedFrame. |
|
Return cumulative sum of the IndexedFrame. |
|
Generate descriptive statistics. |
|
First discrete difference of element. |
|
Evaluate a string describing operations on DataFrame columns. |
|
Provide exponential weighted (EW) functions. |
|
Return Fisher's unbiased kurtosis of a sample. |
|
Return Fisher's unbiased kurtosis of a sample. |
|
Return the maximum of the values in the DataFrame. |
|
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 in the DataFrame. |
|
Get the mode(s) of each element along the selected axis. |
|
Calculates the percent change between sequential elements in the DataFrame. |
|
Return product of the values in the DataFrame. |
|
Return product of the values in the DataFrame. |
|
Return values at the given quantile. |
|
Compute numerical data ranks (1 through n) along axis. |
|
Round to a variable number of decimal places. |
Scale values to [0, 1] in float64 |
|
|
Return unbiased Fisher-Pearson skew of a sample. |
|
Return sum of the values in the DataFrame. |
|
Return sample standard deviation of the DataFrame. |
|
Return unbiased variance of the DataFrame. |
|
Count number of distinct elements in specified axis. |
|
Return a Series containing counts of unique rows 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 DataFrame with duplicate rows removed. |
|
Return boolean Series denoting duplicate rows. |
|
Test whether two objects contain the same elements. |
|
Select initial periods of time series data based on a date offset. |
|
Return the first n rows. |
|
Select final periods of time series data based on a date offset. |
|
Conform DataFrame to new index. |
|
Alter column and index labels. |
|
Reset the index of the DataFrame, or a level of it. |
|
Return a random sample of items from an axis of object. |
|
Find indices where elements should be inserted to maintain order |
|
Return a new DataFrame with a new index |
|
Repeats elements consecutively. |
|
Returns the last n rows as a new DataFrame or Series |
|
Return a new frame containing the rows specified by indices. |
|
Repeats the rows count times to form a new Frame. |
|
Truncate a Series or DataFrame before and after some index value. |
Missing data handling#
|
Synonym for |
|
Synonym for |
|
Drop rows (or columns) containing nulls from a Column. |
|
Synonym for |
|
Fill null values with |
|
Interpolate data values between some points. |
Identify missing values. |
|
Identify missing values. |
|
Convert nans (if any) to nulls |
|
Identify non-missing values. |
|
Identify non-missing values. |
|
|
Synonym for |
|
Replace values given in |
Reshaping, sorting, transposing#
|
Return the integer indices that would sort the Series values. |
Interleave Series columns of a table into a single column. |
|
|
Partition the dataframe by the hashed value of data in columns. |
|
Return reshaped DataFrame organized by the given index and column values. |
|
Create a spreadsheet-style pivot table as a DataFrame. |
|
Scatter to a list of dataframes. |
|
Sort by the values along either axis. |
|
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. |
|
Swap level i with level j. |
|
Stack the prescribed level(s) from columns to index |
|
Pivot one or more levels of the (necessarily hierarchical) index labels. |
|
Unpivots a DataFrame from wide format to long format, optionally leaving identifier variables set. |
|
Transform each element of a list-like to a row, replicating index values. |
|
Return a struct Series composed of the columns of the DataFrame. |
Transpose index and columns. |
|
Transpose index and columns. |
Combining / comparing / joining / merging#
|
Assign columns to DataFrame from keyword arguments. |
|
Join columns with other DataFrame on index or on a key column. |
|
Merge GPU DataFrame objects by performing a database-style join operation by columns or indexes. |
|
Modify a DataFrame in place using non-NA values from another DataFrame. |
Serialization / IO / conversion#
|
Generate an object from a serialized representation. |
|
Perform device-side deserialization tasks. |
Serialize data and metadata associated with device memory. |
|
|
Convert from PyArrow Table to DataFrame. |
|
Construct DataFrame from dict of array-like or dicts. |
|
Convert from a Pandas DataFrame. |
|
Convert structured or record ndarray to DataFrame. |
|
Compute the hash of values in this column. |
|
Perform device-side deserialization tasks. |
Serialize data and metadata associated with host memory. |
|
Generate an equivalent serializable representation of an object. |
|
|
Convert to a PyArrow Table. |
|
Convert the DataFrame to a dictionary. |
Converts a cuDF object into a DLPack tensor. |
|
|
Write a DataFrame to the parquet format. |
|
Write a dataframe to csv file format. |
|
Convert the Frame to a CuPy array. |
|
Write the contained data to an HDF5 file using HDFStore. |
|
Convert the DataFrame to a dictionary. |
|
Convert the cuDF object to a JSON string. |
|
Convert the Frame to a NumPy array. |
|
Convert to a Pandas DataFrame. |
|
Write a DataFrame to the feather format. |
|
Convert to a numpy recarray |
Convert to string |
|
Return a CuPy representation of the DataFrame. |
|
Return a NumPy representation of the data. |