xarray.core.resample.DatasetResample.first#
- DatasetResample.first(skipna=None, keep_attrs=None)[source]#
Return the first element of each group along the group dimension
- Parameters:
skipna (
boolorNone, optional) – If True, skip missing values (as marked by NaN). By default, only skips missing values for float dtypes; other dtypes either do not have a sentinel missing value (int) orskipna=Truehas not been implemented (object, datetime64 or timedelta64).keep_attrs (
boolorNone, optional) – If True,attrswill be copied from the original object to the new one. If False, the new object will be returned without attributes.