def parse_metadata(raw_metadata):
    """
    Parse relevant metadata into a tabular format

    :param raw_metadata:    dict, raw metadata as returned by
                            Socrata.get_metadata()
    :return:                pd.DataFrame, queried metadata
    """
    parsed_metadata = {
        'field_name': [],
        'column_name': [],
        'description': [],
        'data_type': [],
    }
    for column in raw_metadata['columns']:
        parsed_metadata['field_name'].append(column['fieldName'])
        parsed_metadata['column_name'].append(column['name'])
        parsed_metadata['data_type'].append(column['dataTypeName'])
        try:
            parsed_metadata['description'].append(column['description'])
        except KeyError:
            parsed_metadata['description'].append(None)

    return parsed_metadata