snowflake.snowpark.modin.plugin.extensions.resample_overrides.Resampler.last¶
- Resampler.last(numeric_only: bool = False, min_count: int = 0, skipna: bool = True, *args: Any, **kwargs: Any) Union[DataFrame, Series][source]¶
Compute the last entry of each column within each group.
Defaults to skipping NA elements.
- Parameters:
numeric_only (bool, default False) – Include only float, int, boolean columns.
min_count (int, default -1) – The required number of valid values to perform the operation. If fewer than
min_countvalid values are present the result will be NA.skipna (bool, default True) – Exclude NA/null values. If an entire row/column is NA, the result will be NA.
- Returns:
Last values within each group.
- Return type:
Examples
For Series:
For DataFrame: