def typeof_pd_index(val, c): if len(val) > 0 and isinstance(val[0], datetime.date): return SeriesType(datetime_date_type) else: raise NotImplementedError("unsupported pd.Index type")
def resolve_date_field(self, ary): # TODO: return Int64Index return SeriesType(types.int64)
def typeof_pd_str_series(val, c): index_type = _infer_index_type(val.index) is_named = val.name is not None return SeriesType( _infer_series_dtype(val), index=index_type, is_named=is_named)
def typeof_pd_str_series(val, c): return SeriesType(_infer_series_dtype(val))