helikite.processing.helpers

Attributes

logger

Functions

reduce_column_to_single_unique_value(→ Any)

Reduce a column to a single value, if possible.

remove_duplicates(→ pandas.DataFrame)

Removes duplicate rows from a dataframe based on the DateTime column

Module Contents

helikite.processing.helpers.logger
helikite.processing.helpers.reduce_column_to_single_unique_value(df: pandas.DataFrame, col: str) Any

Reduce a column to a single value, if possible.

Parameters:
  • df (pd.DataFrame) – Dataframe to reduce.

  • col (str) – Column to reduce.

Returns:

Single value if possible, else the original column.

Return type:

Any

Raises:

ValueError – If the column cannot be reduced to a single value.

helikite.processing.helpers.remove_duplicates(df: pandas.DataFrame) pandas.DataFrame

Removes duplicate rows from a dataframe based on the DateTime column