dqa.tasks.time_series.PandasSeriesTask#

class dqa.tasks.time_series.PandasSeriesTask(index_name: str | List[str] | None = None, modify_index: bool = False, **kwargs)#

Abstract base class for a task that works on a pandas Series.

An action is performed by overriding the modify_series() method, which takes the data in a pandas Series as an argument and returns a Series again. Only the data rows given in input_name are taken into those Series. Compared to the PandasDataFrameTask, each input given in input_name is processed separately.

Parameters:
  • index_name (str or list of strings, default=None) – The content of this data row will be used as the index for the Series. If one value is given here, it will be used as the index for all data rows specified in input_name. Otherwise, the number must be equal to the number of data rows specified in input_name.

  • modify_index (bool, default=False) – Indicates if the result of modifications of the index of the DataFrame should be stored in the dataset.

Methods

finish()

Can perform actions that are required to clean up after the task has finished, e.g. close network connections etc.

in_out_default

input_output_dataset

input_output_machine

input_output_mode

input_output_name

log

modify_data_row

modify_dataset

modify_dataset_dict

modify_machine

modify_measurement

modify_series

set_logging_level

transfer_metadata