Open Hocnonsense opened 5 months ago
in timspy, OpenTIMS.frame is converted as a pd.DataFrame, in which self.frames["Id"] will be a pd.Series and do not support the [-1] action. https://github.com/MatteoLacki/timspy/blob/c9e69e530a002accd2093d0235034732e173836e/timspy/df.py#L14-L24
pd.DataFrame
self.frames["Id"]
pd.Series
[-1]
To use .min() and .max(), these functions can be more robust.
.min()
.max()
in timspy, OpenTIMS.frame is converted as a
pd.DataFrame
, in whichself.frames["Id"]
will be apd.Series
and do not support the[-1]
action.https://github.com/MatteoLacki/timspy/blob/c9e69e530a002accd2093d0235034732e173836e/timspy/df.py#L14-L24
To use
.min()
and.max()
, these functions can be more robust.