def _form_parameter(self, df: pd.DataFrame, parameter_name: str, default: float) -> pd.DataFrame:
    'Converts data into wide format\n\n        Arguments\n        ---------\n        df: pd.DataFrame\n        parameter_name: str\n        default: float\n\n        Returns\n        -------\n        pandas.DataFrame\n        '
    if (not df.empty):
        names = df.columns.to_list()
        if (len(names) > 2):
            logger.debug('More than 2 columns for {}: {}'.format(parameter_name, names))
            rows = names[0:(- 2)]
            columns = names[(- 2)]
            values = names[(- 1)]
            logger.debug('Rows: {}; columns: {}; values: {}', rows, columns, values)
            logger.debug('dtypes: {}'.format(df.dtypes))
            pivot = pd.pivot_table(df, index=rows, columns=columns, values=values, fill_value=default)
        elif (len(names) == 2):
            logger.debug('Two columns for {}: {}'.format(parameter_name, names))
            values = names[(- 1)]
            rows = names[0:(- 2)]
            logger.debug('Rows: {}; values: {}', rows, values)
            pivot = pd.pivot_table(df, index=rows, values=values, fill_value=default)
        else:
            logger.debug('One column for {}: {}'.format(parameter_name, names))
            pivot = df.copy()
            pivot = pivot.reset_index(drop=True)
    else:
        logger.debug('Dataframe {} is empty'.format(parameter_name))
        pivot = df.copy()
    return pivot
Converts data into wide format

Arguments
---------
df: pd.DataFrame
parameter_name: str
default: float

Returns
-------
pandas.DataFrame
def _form_parameter(self, df: pd.DataFrame, parameter_name: str, default: float) -> pd.DataFrame:
    'Converts data into wide format\n\n        Arguments\n        ---------\n        df: pd.DataFrame\n        parameter_name: str\n        default: float\n\n        Returns\n        -------\n        pandas.DataFrame\n        '
    if (not df.empty):
        names = df.columns.to_list()
        if (len(names) > 2):
            logger.debug('More than 2 columns for {}: {}'.format(parameter_name, names))
            rows = names[0:(- 2)]
            columns = names[(- 2)]
            values = names[(- 1)]
            logger.debug('Rows: {}; columns: {}; values: {}', rows, columns, values)
            logger.debug('dtypes: {}'.format(df.dtypes))
            pivot = pd.pivot_table(df, index=rows, columns=columns, values=values, fill_value=default)
        elif (len(names) == 2):
            logger.debug('Two columns for {}: {}'.format(parameter_name, names))
            values = names[(- 1)]
            rows = names[0:(- 2)]
            logger.debug('Rows: {}; values: {}', rows, values)
            pivot = pd.pivot_table(df, index=rows, values=values, fill_value=default)
        else:
            logger.debug('One column for {}: {}'.format(parameter_name, names))
            pivot = df.copy()
            pivot = pivot.reset_index(drop=True)
    else:
        logger.debug('Dataframe {} is empty'.format(parameter_name))
        pivot = df.copy()
    return pivot