def convert_json_field_to_pandas_type(field):
typ = field['<STR_LIT:type>']<EOL>if typ == '<STR_LIT:string>':<EOL><INDENT>return '<STR_LIT:object>'<EOL><DEDENT>elif typ == '<STR_LIT>':<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>elif typ == '<STR_LIT>':<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>elif typ == '<STR_LIT>':<EOL><INDENT>return '<STR_LIT:bool>'<EOL><DEDENT>elif typ == '<STR_LIT>':<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT>elif typ == '<STR_LIT>':<EOL><INDENT>if field.get('<STR_LIT>'):<EOL><INDENT>return '<STR_LIT>'.format(tz=field['<STR_LIT>'])<EOL><DEDENT>else:<EOL><INDENT>return '<STR_LIT>'<EOL><DEDENT><DEDENT>elif typ == '<STR_LIT>':<EOL><INDENT>if '<STR_LIT>' in field and '<STR_LIT>' in field:<EOL><INDENT>return CategoricalDtype(categories=field['<STR_LIT>']['<STR_LIT>'],<EOL>ordered=field['<STR_LIT>'])<EOL><DEDENT>else:<EOL><INDENT>return '<STR_LIT:object>'<EOL><DEDENT><DEDENT>raise ValueError("<STR_LIT>".format(typ))<EOL>
Converts a JSON field descriptor into its corresponding NumPy / pandas type

Parameters
----------
field
    A JSON field descriptor

Returns
-------
dtype

Raises
-----
ValueError
    If the type of the provided field is unknown or currently unsupported

Examples
--------
>>> convert_json_field_to_pandas_type({'name': 'an_int',
                                       'type': 'integer'})
'int64'
>>> convert_json_field_to_pandas_type({'name': 'a_categorical',
                                       'type': 'any',
                                       'contraints': {'enum': [
                                                      'a', 'b', 'c']},
                                       'ordered': True})
'CategoricalDtype(categories=['a', 'b', 'c'], ordered=True)'
>>> convert_json_field_to_pandas_type({'name': 'a_datetime',
                                       'type': 'datetime'})
'datetime64[ns]'
>>> convert_json_field_to_pandas_type({'name': 'a_datetime_with_tz',
                                       'type': 'datetime',
                                       'tz': 'US/Central'})
'datetime64[ns, US/Central]'