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

Method to_base_variable

xarray/core/variable.py:561–565  ·  view source on GitHub ↗

Return this variable as a base xarray.Variable

(self)

Source from the content-addressed store, hash-verified

559 self.data = values
560
561 def to_base_variable(self) -> Variable:
562 """Return this variable as a base xarray.Variable"""
563 return Variable(
564 self._dims, self._data, self._attrs, encoding=self._encoding, fastpath=True
565 )
566
567 to_variable = utils.alias(to_base_variable, "to_variable")
568

Callers 15

to_dask_dataframeMethod · 0.95
_unstack_onceMethod · 0.95
_factorize_dummyMethod · 0.80
_isel_fancyMethod · 0.80
interpMethod · 0.80
swap_dimsMethod · 0.80
set_indexMethod · 0.80
drop_or_convertMethod · 0.80
drop_indexesMethod · 0.80
__init__Method · 0.80
dataset_update_methodFunction · 0.80

Calls 1

VariableClass · 0.70

Tested by 10

test_renameMethod · 0.64
test_reset_indexMethod · 0.64
test_1d_mathMethod · 0.64
test_array_interfaceMethod · 0.64
test_concat_attrsMethod · 0.64
test_real_and_imagMethod · 0.64
test_as_variableMethod · 0.64