# xarray.load_dataset

`xarray.``load_dataset`(filename_or_obj, **kwargs)

  Open, load into memory, and close a Dataset from a file or file-like object.

  This is a thin wrapper around `open_dataset()`. It differs from open_dataset in that it loads the Dataset into memory, closes the file, and returns the Dataset. In contrast, open_dataset keeps the file handle open and lazy loads its contents. All parameters are passed directly to open_dataset. See that documentation for further details.

  Returns: | dataset – The newly created Dataset.
  Return type: | Dataset

  See also

  `open_dataset()`