morpheus.controllers.write_to_file_controller.WriteToFileController#
- class WriteToFileController(
- filename,
- overwrite,
- file_type,
- include_index_col,
- flush,
Bases:
objectController class for writing data to a file with customizable options.
- Parameters:
- filenamestr
The output file name.
- overwritebool
Flag to indicate whether to overwrite an existing file.
- file_typeFileTypes
The type of the output file (e.g., CSV, JSON).
- include_index_colbool
Flag to indicate whether to include the index column in the output.
- flushbool
Flag to indicate whether to flush the output file after writing.
- Attributes:
file_typeGet the type of the output file.
flushGet the flag indicating whether to flush the output file after writing.
include_index_colGet the flag indicating whether to include the index column in the output.
output_fileGet the output file name.
overwriteGet the flag indicating whether to overwrite an existing file.
Methods
node_fn
- property file_type#
Get the type of the output file.
- property flush#
Get the flag indicating whether to flush the output file after writing.
- property include_index_col#
Get the flag indicating whether to include the index column in the output.
- property output_file#
Get the output file name.
- property overwrite#
Get the flag indicating whether to overwrite an existing file.