cudf.Index.max#
- Index.max(axis=0, skipna=True, numeric_only=False, **kwargs)[source]#
Return the maximum of the values in the DataFrame.
- Parameters:
- axis: {index (0), columns(1)}
Axis for the function to be applied on.
- skipna: bool, default True
Exclude NA/null values when computing the result.
- numeric_only: bool, default False
If True, includes only float, int, boolean columns. If False, will raise error in-case there are non-numeric columns.
- Returns:
- Series
Examples
>>> import cudf >>> df = cudf.DataFrame({'a': [1, 2, 3, 4], 'b': [7, 8, 9, 10]}) >>> df.max() a 4 b 10 dtype: int64
Pandas Compatibility Note
pandas.DataFrame.max()
,pandas.Series.max()
Parameters currently not supported are level, numeric_only.