(nbtype)
Return a Pandas *dtype* instance corresponding to the given Numba type.
    NotImplementedError is raised if no correspondence is known.
Return a Pandas *dtype* instance corresponding to the given Numba type.
    NotImplementedError is raised if no correspondence is known.
Return a Pandas * dtype * instance corresponding to the given Numba type . NotImplementedError is raised if no correspondence is known .
def as_dtype(nbtype):
    """
    Return a Pandas *dtype* instance corresponding to the given Numba type.
    NotImplementedError is raised if no correspondence is known.
    """
    nbtype = types.unliteral(nbtype)
    if isinstance(nbtype, CategoricalDtypeType):
        return pd.CategoricalDtype(categories=nbtype.categories,
                                   ordered=nbtype.ordered)

    raise NotImplementedError("%r cannot be represented as a Pandas dtype"
                              % (nbtype,))
def as_dtype ( nbtype ) : nbtype = types . unliteral ( nbtype ) if isinstance ( nbtype , CategoricalDtypeType ) : return pd . CategoricalDtype ( categories = nbtype . categories , ordered = nbtype . ordered ) raise NotImplementedError ( "%r cannot be represented as a Pandas dtype" % ( nbtype , ) )