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

Method _apply

xarray/core/accessor_str.py:223–241  ·  view source on GitHub ↗
(
        self,
        *,
        func: Callable,
        dtype: DTypeLike | None = None,
        output_core_dims: list | tuple = ((),),
        output_sizes: Mapping[Any, int] | None = None,
        func_args: tuple = (),
        func_kwargs: Mapping = {},
    )

Source from the content-addressed store, hash-verified

221 return self._obj.dtype.type(invar)
222
223 def _apply(
224 self,
225 *,
226 func: Callable,
227 dtype: DTypeLike | None = None,
228 output_core_dims: list | tuple = ((),),
229 output_sizes: Mapping[Any, int] | None = None,
230 func_args: tuple = (),
231 func_kwargs: Mapping = {},
232 ) -> T_DataArray:
233 return _apply_str_ufunc(
234 obj=self._obj,
235 func=func,
236 dtype=dtype,
237 output_core_dims=output_core_dims,
238 output_sizes=output_sizes,
239 func_args=func_args,
240 func_kwargs=func_kwargs,
241 )
242
243 def _re_compile(
244 self,

Callers 15

lenMethod · 0.95
__mod__Method · 0.95
getMethod · 0.95
sliceMethod · 0.95
slice_replaceMethod · 0.95
catMethod · 0.95
formatMethod · 0.95
capitalizeMethod · 0.95
lowerMethod · 0.95
swapcaseMethod · 0.95
titleMethod · 0.95
upperMethod · 0.95

Calls 1

_apply_str_ufuncFunction · 0.85

Tested by

no test coverage detected