Skip to content

Commit

Permalink
Use DataFrame.map instead of DataFrame.applymap
Browse files Browse the repository at this point in the history
  • Loading branch information
sooahleex committed Sep 23, 2024
1 parent ad84aa7 commit 6b569fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/datumaro/plugins/transforms.py
Original file line number Diff line number Diff line change
Expand Up @@ -1957,7 +1957,7 @@ def refine_tabular_media(self, item):
or item.media.table.dtype(col) is int
]

df[str_cols] = df[str_cols].applymap(lambda x: self.remove_unnecessary_char(x))
df[str_cols] = df[str_cols].map(lambda x: self.remove_unnecessary_char(x))

if not (self._outlier_value):
self.check_outlier(media.table.data[float_cols + int_cols], float_cols + int_cols)
Expand Down

0 comments on commit 6b569fb

Please sign in to comment.