dump_df
- dump_df(key, *subkeys, name, obj, sep='\\t', index=False, to_csv_kwargs=None)[source]
Dump a dataframe to a TSV file with
pandas
.- Parameters:
key (
str
) – The module namesubkeys (
str
) – A sequence of additional strings to join. If none are given, returns the directory for this module.name (
str
) – Overrides the name of the file at the end of the URL, if given. Also useful for URLs that don’t have proper filenames with extensions.obj (
DataFrame
) – The dataframe to dumpsep (
str
) – The separator to use, defaults to a tabindex – Should the index be dumped? Defaults to false.
to_csv_kwargs (
Optional
[Mapping
[str
,Any
]]) – Keyword arguments to pass through topandas.DataFrame.to_csv()
.
- Return type: