Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinBelthle committed Oct 1, 2024
1 parent 534df03 commit 6271165
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ def extract_date(self, df: pd.DataFrame) -> Tuple[pd.Index[str], pd.DataFrame]:
to_remove = cast(Sequence[Hashable], df.columns[0:5])
body = df.drop(to_remove, axis=1)

return cast(pd.Index[str], pd.Index(date)), body
return pd.Index(date), body # type: ignore


class DailyMatrixSerializer(IDateMatrixSerializer):
Expand Down Expand Up @@ -148,7 +148,7 @@ def extract_date(self, df: pd.DataFrame) -> Tuple[pd.Index[str], pd.DataFrame]:
to_remove = cast(Sequence[Hashable], df.columns[0:4])
body = df.drop(to_remove, axis=1)

return cast(pd.Index[str], pd.Index(date)), body
return pd.Index(date), body # type: ignore


class WeeklyMatrixSerializer(IDateMatrixSerializer):
Expand Down

0 comments on commit 6271165

Please sign in to comment.