Skip to content

Commit

Permalink
Fix typing errors on master (#2211)
Browse files Browse the repository at this point in the history
  • Loading branch information
zundertj committed Dec 28, 2021
1 parent f108a4d commit f272292
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions py-polars/polars/internals/frame.py
Original file line number Diff line number Diff line change
Expand Up @@ -1736,10 +1736,10 @@ def describe_cast(self: "DataFrame") -> "DataFrame":

summary = pli.concat(
[
describe_cast(self.mean()), # type: ignore
describe_cast(self.mean()),
describe_cast(self.std()),
describe_cast(self.min()), # type: ignore
describe_cast(self.max()), # type: ignore
describe_cast(self.min()),
describe_cast(self.max()),
describe_cast(self.median()),
]
)
Expand Down
2 changes: 1 addition & 1 deletion py-polars/tests/test_df.py
Original file line number Diff line number Diff line change
Expand Up @@ -420,7 +420,7 @@ def test_groupby() -> None:
# df.groupby(by="a", select="b", agg="count").frame_equal(
# pl.DataFrame({"a": ["a", "b", "c"], "": [2, 3, 1]})
# )
assert df.groupby("a").apply(lambda df: df[["c"]].sum()).sort("c")["c"][0] == 1 # type: ignore
assert df.groupby("a").apply(lambda df: df[["c"]].sum()).sort("c")["c"][0] == 1

assert (
df.groupby("a")
Expand Down

0 comments on commit f272292

Please sign in to comment.