MCPcopy
hub / github.com/pydata/xarray / _strftime

Function _strftime

xarray/core/accessor_dt.py:221–231  ·  view source on GitHub ↗
(values, date_format)

Source from the content-addressed store, hash-verified

219
220
221def _strftime(values, date_format):
222 if is_np_datetime_like(values.dtype):
223 access_method = _strftime_through_series
224 else:
225 access_method = _strftime_through_cftimeindex
226 if is_duck_dask_array(values):
227 from dask.array import map_blocks
228
229 return map_blocks(access_method, values, date_format)
230 else:
231 return access_method(values, date_format)
232
233
234def _index_or_data(obj):

Callers 1

strftimeMethod · 0.85

Calls 3

is_np_datetime_likeFunction · 0.90
is_duck_dask_arrayFunction · 0.90
map_blocksFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…