write_tarfile_csv
- write_tarfile_csv(df: pandas.DataFrame, path: str | Path, inner_path: str, sep: str = '\t', index: bool = False, **kwargs: Any) None[source]
Write a dataframe to an inner CSV file from a tar archive.
- Parameters:
df – A dataframe
path – The path to the resulting tar archive
inner_path – The path inside the tar archive to write the dataframe
sep – The separator in the dataframe. Overrides Pandas default to use a tab.
index – Should the index be output? Overrides the Pandas default to be false.
kwargs – Additional kwargs to pass to
get_df_io()and transitively topandas.DataFrame.to_csv().