@staticmethod
def clean_data(star_schema_df, measures):
    """measure like this: 1 349 is not numeric so we try to transform it to
        1349.

        :param star_schema_df: start schema dataframe
        :param measures: list of measures columns names

        :return: cleaned columns
        """
    if measures:
        for measure in measures:
            if star_schema_df.select(measure).dtypes[0][1] == 'string':
                star_schema_df[measure] = star_schema_df[measure].str.replace(
                    ' ', '')
                star_schema_df[measure] = star_schema_df[measure].astype(
                    'float')
    return star_schema_df
