Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 2, 2023
1 parent a359106 commit 571c3ce
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions intake_esm/cat.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,11 +266,7 @@ def columns_with_iterables(self) -> set[str]:
if self._df.empty:
return set()
has_iterables = (
self._df.sample(20, replace=True)
.map(type)
.isin([list, tuple, set])
.any()
.to_dict()
self._df.sample(20, replace=True).map(type).isin([list, tuple, set]).any().to_dict()
)
return {column for column, check in has_iterables.items() if check}

Expand Down

0 comments on commit 571c3ce

Please sign in to comment.