File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -59,12 +59,12 @@ def _order_categories(self, unique_data):
5959 nans = pd .isna (unique_data )
6060 if self .order_by == 'alphabetical' :
6161 # pylint: disable=invalid-unary-operand-type
62- if any (map ( lambda item : not isinstance (item , str ), unique_data [~ nans ])): # noqa: C417
62+ if any (not isinstance (item , str ) for item in unique_data [~ nans ]):
6363 raise TransformerInputError (
6464 "The data must be of type string if order_by is 'alphabetical'."
6565 )
6666 elif self .order_by == 'numerical_value' :
67- if any (map ( lambda item : not np .issubdtype (type (item ), np .number ), unique_data [~ nans ])): # noqa: C417
67+ if any (not np .issubdtype (type (item ), np .number ) for item in unique_data [~ nans ]):
6868 raise TransformerInputError (
6969 "The data must be numerical if order_by is 'numerical_value'."
7070 )
You can’t perform that action at this time.
0 commit comments