def count_wrong_signs(measurement_df, measurement_type='load'):
    """
        Some data in the solar or loads can be wrong, which is usually indicated by
        a wrong signage. Loads must be positive and solar must be negative

        Args:
            measurement_df (Data frame): Data frame to be checked
            measurement_type: measurement type e.G. loads, solar
        Returns:
            int: with the number of samples with wrong signage
    """
    if measurement_type == "load":
        negative_values = measurement_df.lt(0).sum().sum()
        return int(negative_values)
    if measurement_type == "solar":
        positive_values = measurement_df.gt(0).sum()
        return int(positive_values)
    return 0