get_itype¶
-
dios.
get_itype
(obj)[source]¶ Return the according Itype.
and return the according Itype :param obj: get the itype fitting for the input :type obj: {itype string, Itype, pandas.Index, instance of pd.index}
Examples
>>> get_itype("datetime") <class 'dios.lib.DtItype'>
>>> s = pd.Series(index=pd.to_datetime([])) >>> get_itype(s.index) <class 'dios.lib.DtItype'>
>>> get_itype(DtItype) <class 'dios.lib.DtItype'>
>>> get_itype(pd.DatetimeIndex) <class 'dios.lib.DtItype'>