pydpeet.write#

pydpeet.write(data_input, output_path, output_file_name, data_output_filetype=DataOutputFiletype.parquet)[source]#

Export the given DataFrame to the given output path.

Parameters:
  • data_frame (DataFrame) – DataFrame to be exported.

  • output_path (str) – Path to the directory where the file will be saved. Must exist.

  • output_file_name (str) – Name of the file to be saved.

  • data_output_filetype (DataOutputFiletype, optional) – The file type to use when exporting the DataFrame. Defaults to DataOutputFiletype.parquet.

  • data_input (DataFrame)

Raises:
  • ValueError – If data_frame is None, or if output_path or output_file_name are None.

  • TypeError – If data_frame is not a pandas.DataFrame, or if data_output_filetype is not a DataOutputFiletype.

Return type:

None