metobs_toolkit.station.Station.to_csv#
- Station.to_csv(filepath: str | PathLike | None = None, overwrite: bool = False, **kwargs) None[source]#
Save the station 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) for this station.
- Parameters:
filepath (str or path-like or None, optional) – Path where the CSV file will be saved. If None, defaults to ‘<stationname>_station.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
Station.dfThe DataFrame property that is written to file.
Station.to_parquetSave station data to parquet format.