Skip to content

Commit

Permalink
Remove unnecessary test
Browse files Browse the repository at this point in the history
  • Loading branch information
droussea2001 committed Oct 11, 2024
1 parent 985598b commit c23f65b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pandas/core/algorithms.py
Original file line number Diff line number Diff line change
Expand Up @@ -1738,10 +1738,8 @@ def _build_map_infer_methods_params(arr: ArrayLike):
na_value = None
mask = isna(arr)
storage = None
if (
isinstance(arr.dtype, (BaseMaskedDtype, ExtensionDtype))
and hasattr(arr, "_hasna")
and arr._hasna
if isinstance(arr.dtype, (BaseMaskedDtype, ExtensionDtype)) and hasattr(
arr, "_hasna"
):
na_value = arr.dtype.na_value

Expand Down

0 comments on commit c23f65b

Please sign in to comment.