get_df_io
- get_df_io(df: pandas.DataFrame, sep: str = '\t', index: bool = False, **kwargs: Any) BytesIO[source]
Get the dataframe as bytes.
- Parameters:
df – A 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
pandas.DataFrame.to_csv().
- Returns:
A bytes object that can be used as a file.