def convert(self):
    'Perform the conversion from datapackage to destination format\n        '
    handle = self._header()
    logger.debug(self.default_values)
    for (name, df) in self.package.items():
        logger.debug(name)
        if df.empty:
            columns = [x['name'] for x in df._metadata['schema']['fields']]
            df = pd.DataFrame(columns=columns)
        df = df.reset_index()
        if ('index' in df.columns):
            df = df.drop(columns='index')
        logger.debug('Number of columns: %s, %s', len(df.columns), df.columns)
        if (len(df.columns) > 1):
            default_value = self.default_values[name]
            self._write_parameter(df, name, handle, default=default_value)
        else:
            self._write_set(df, name, handle)
    self._footer(handle)
    handle.close()
Perform the conversion from datapackage to destination format
def convert(self):
    '\n        '
    handle = self._header()
    logger.debug(self.default_values)
    for (name, df) in self.package.items():
        logger.debug(name)
        if df.empty:
            columns = [x['name'] for x in df._metadata['schema']['fields']]
            df = pd.DataFrame(columns=columns)
        df = df.reset_index()
        if ('index' in df.columns):
            df = df.drop(columns='index')
        logger.debug('Number of columns: %s, %s', len(df.columns), df.columns)
        if (len(df.columns) > 1):
            default_value = self.default_values[name]
            self._write_parameter(df, name, handle, default=default_value)
        else:
            self._write_set(df, name, handle)
    self._footer(handle)
    handle.close()