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 name

  • subkeys (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 dump

  • sep (str) – The separator to use, defaults to a tab

  • index – Should the index be dumped? Defaults to false.

  • to_csv_kwargs (Optional[Mapping[str, Any]]) – Keyword arguments to pass through to pandas.DataFrame.to_csv().

Return type:

None