quick_anomaly_detector.data_process.apply_transformations

quick_anomaly_detector.data_process.apply_transformations(df, column_name)

Apply logarithm and square transformations to a column in a DataFrame.

Parameters:
  • df (pandas.DataFrame) – The pandas DataFrame containing the data.

  • column_name (str) – The name of the column to transform.

Returns:

A list of column names including the original column and the transformed columns.

Return type:

list

Example

from quick_anomaly_detector.data_process import apply_transformations

columns_to_plot = log_sqaure(df, 'column_name')