metobs_toolkit.dataset.Dataset.to_csv#

Dataset.to_csv(filepath: str | PathLike | None = None, overwrite: bool = False, **kwargs) None[source]#

Save the dataset observations to a CSV file.

The DataFrame returned by the .df property is written to a CSV file. This includes all observations with their QC labels (or gapfill labels) from all stations in the dataset.

Parameters:
  • filepath (str or path-like or None, optional) – Path where the CSV file will be saved. If None, defaults to ‘dataset.csv’ in the current working directory. Default is None.

  • overwrite (bool, optional) – If True, overwrites existing file. Default is False.

  • **kwargs – Additional keyword arguments to pass to pandas.DataFrame.to_csv().

Return type:

None

See also

Dataset.df

The DataFrame property that is written to file.

Dataset.to_parquet

Save dataset to parquet format.

Dataset.save_dataset_to_pkl

Save complete dataset to pickle format.