def transform_horizontal_to_vertical(df):
    '\n    Transforms the horizontal format into vertical format\n    :param df:\n    :return:\n    '
    return df.explode().reset_index()
Transforms the horizontal format into vertical format
:param df:
:return:
def transform_horizontal_to_vertical(df):
    '\n    Transforms the horizontal format into vertical format\n    :param df:\n    :return:\n    '
    return df.explode().reset_index()