(array, *args, **kwargs)
| 1904 | ) |
| 1905 | |
| 1906 | def resample_as_pandas(array, *args, **kwargs): |
| 1907 | array_ = array.copy(deep=True) |
| 1908 | if use_cftime: |
| 1909 | array_["time"] = times.to_datetimeindex(time_unit="ns") |
| 1910 | result = DataArray.from_series( |
| 1911 | array_.to_series().resample(*args, **kwargs).mean() |
| 1912 | ) |
| 1913 | if use_cftime: |
| 1914 | result = result.convert_calendar( |
| 1915 | calendar="standard", use_cftime=use_cftime |
| 1916 | ) |
| 1917 | return result |
| 1918 | |
| 1919 | array = DataArray(np.arange(10), [("time", times)]) |
| 1920 |
nothing calls this directly
no test coverage detected