5.3.1.13.1.5.1. cli.cmd_plot.data_handling.handler_interface.DataHandlerInterface

class cli.cmd_plot.data_handling.handler_interface.DataHandlerInterface

Bases: ABC

Interface defining methods to read a data file and return the data as pandas.DataFrame

abstractmethod get_data(file_path: Path, no_tmp: bool = True) → DataFrame

Read the given file and returns the contained data.

static get_tmp_data(file_path: Path, no_tmp: bool) → DataFrame | None

Return temporary data if available

static write_tmp_file(data: DataFrame, file_path: Path) → None

Write a pandas Dataframe as parquet file into the temporary directory