# xarray.backends.ZarrStore.encode_variable

#### ZarrStore.encode_variable(variable, name=None)[[source]](https://github.com/pydata/xarray/blob/main/xarray/backends/zarr.py#L1043-L1047)

Encode one variable.
