xarray.DataArray.head

DataArray.head(self, indexers: Union[Mapping[Hashable, int], int] = None, **indexers_kwargs: Any) → 'DataArray'

Return a new DataArray whose data is given by the the first n values along the specified dimension(s). Default n = 5