- class WriteToFileController(filename, overwrite, file_type, include_index_col, flush)[source]
Bases:
object
Controller class for writing data to a file with customizable options.
- Parameters
- filename
- overwrite
- file_type
- include_index_col
- flush
The output file name.
Flag to indicate whether to overwrite an existing file.
The type of the output file (e.g., CSV, JSON).
Flag to indicate whether to include the index column in the output.
Flag to indicate whether to flush the output file after writing.
- Attributes
file_type
flush
include_index_col
output_file
overwrite
Get the type of the output file.
Get the flag indicating whether to flush the output file after writing.
Get the flag indicating whether to include the index column in the output.
Get the output file name.
Get 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.
morpheus.controllers.write_to_file_controller.WriteToFileController
Previous
morpheus.controllers.write_to_file_controller
Next
morpheus.io