write_tarfile_csv
- write_tarfile_csv(df, path, inner_path, sep='\\t', index=False, **kwargs)[source]
Write a dataframe to an inner CSV file from a tar archive.
- Parameters:
df (pandas.DataFrame) – A dataframe
path (
Union
[str
,Path
]) – The path to the resulting tar archiveinner_path (
str
) – The path inside the tar archive to write the dataframesep (
str
) – The separator in the dataframe. Overrides Pandas default to use a tab.index (
bool
) – 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()
.
- Return type: