geost.base.Collection.to_csv#
- Collection.to_csv(outfile: str | Path, data_table: bool = True, **kwargs)[source]#
Export the data or header table to a csv file. By default the data table is exported.
- Parameters:
file (str | Path) – Path to csv file to be written.
data_table (bool, optional) – If True, the data table is exported. If False, the header table is exported.
**kwargs – pd.DataFrame.to_csv kwargs. See relevant Pandas documentation.
Examples
Export the data table: >>> collection.to_parquet(“example.csv”)
Export the header table: >>> collection.to_parquet(“example.csv”, data_table=False)