示例#1
0
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")
示例#2
0
def resolve_date_field(self, ary):
    # TODO: return Int64Index
    return SeriesType(types.int64)
示例#3
0
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)
示例#4
0
def typeof_pd_str_series(val, c):
    return SeriesType(_infer_series_dtype(val))