# xarray.backends.NetCDF4DataStore.set_attributes

#### NetCDF4DataStore.set_attributes(attributes)[[source]](https://github.com/pydata/xarray/blob/main/xarray/backends/netCDF4_.py#L760-L763)

This provides a centralized method to set the dataset attributes on the
data store.

* **Parameters:**
  **attributes** ([dict-like](https://docs.python.org/3/glossary.html#term-mapping)) – Dictionary of key/value (attribute name / attribute) pairs
