class_docstr: Represent a dataset in RAM.
class_docstr_tok: ["Represent","a","dataset","in","RAM","."]
docstr: Container for storing a dataset in memory.
docstr_tok: ["Container","for","storing","a","dataset","in","memory","."]
code: def __init__(self, dataset, name):
      """Container for storing a dataset in memory."""
      if not isinstance(dataset, pd.DataFrame):
          raise ValueError(
              f"Dataset must be pandas DataFrame, but found: "
              f"{type(dataset)}"
          )
      self._dataset = dataset
      super().__init__(name=name)
  
file_path: sktime/sktime/benchmarking/data.py
imports: import os
  import pandas
  from sktime.benchmarking.base import BaseDataset, HDDBaseDataset
  from sktime.datasets import load_from_tsfile_to_dataframe
label_desc: Use image node_id 1 to create a new RAMDataset object from inherited base classes: BaseDataset with example: obj = RAMDataset(dataset, name)