Skip to content

Commit

Permalink
Update usage of applymap in utils tests
Browse files Browse the repository at this point in the history
  • Loading branch information
JPhillips92 committed Dec 2, 2024
1 parent 53754f9 commit 6971b28
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@

def not_has_all_delims(df: pd.DataFrame) -> bool:
return not all(
df.applymap(lambda x: delim in x if isinstance(x, str) else False).any().any()
df.map(lambda x: delim in x if isinstance(x, str) else False).any().any()
for delim in _DELIMITER_OPTIONS
)


def not_has_all_quotechars(df: pd.DataFrame) -> bool:
return not all(
df.applymap(lambda x: qc in x if isinstance(x, str) else False).any().any()
df.map(lambda x: qc in x if isinstance(x, str) else False).any().any()
for qc in _QUOTECHAR_OPTIONS
)

Expand Down

0 comments on commit 6971b28

Please sign in to comment.