Pandas have several index types, e.g., pandas.Int64Index, pandas DatetimeIndex, pandas.CategoricalIndex.
in a schema definition one should be able to use pandas index types as "index markers" and not need to wrap the in pandabear.Index type.
# current behaviour if this types where supported
class MySchema(DataframeModel):
date: Index[pd.DatetimeIndex]
...
# nicer:
class MySchema(DataframeModel):
date: pd.DatetimeIndex
...
Pandas have several index types, e.g.,
pandas.Int64Index,pandas DatetimeIndex,pandas.CategoricalIndex.in a schema definition one should be able to use pandas index types as "index markers" and not need to wrap the in
pandabear.Indextype.