(ctype)
return numpy_support.as_dtype(dtype)
Re-creates column dtype as python type to be used in read_csv call
Re-creates column dtype as python type to be used in read_csv call
Re - creates column dtype as python type to be used in read_csv call
def _get_py_col_dtype(ctype):
    """ Re-creates column dtype as python type to be used in read_csv call """
    dtype = ctype.dtype
    if ctype == string_array_type:
        return 'str'
    if isinstance(ctype, Categorical):
        return _reconstruct_CategoricalDtype(ctype.pd_dtype)
    return numpy_support.as_dtype(dtype)
def _get_py_col_dtype ( ctype ) : dtype = ctype . dtype if ctype == string_array_type : return 'str' if isinstance ( ctype , Categorical ) : return _reconstruct_CategoricalDtype ( ctype . pd_dtype ) return numpy_support . as_dtype ( dtype )