save_dataframe

save_dataframe(location: str, key: str, dataframe: pd.DataFrame, **kwargs: int | str | list | dict | bool) None[source]

Save dataframe to key at specified location.

Method will save to the S3 bucket if the location begins with the s3:// protocol, otherwise it assumes the location is a local path.

Parameters:
  • location – Object location (local path or S3 bucket).

  • key – Object key ending in .csv.

  • dataframe – Dataframe to save.

  • **kwargs – Additional parameters for saving dataframe. The keyword arguments are passed to pandas.to_csv.