We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 985598b commit c23f65bCopy full SHA for c23f65b
pandas/core/algorithms.py
@@ -1738,10 +1738,8 @@ def _build_map_infer_methods_params(arr: ArrayLike):
1738
na_value = None
1739
mask = isna(arr)
1740
storage = None
1741
- if (
1742
- isinstance(arr.dtype, (BaseMaskedDtype, ExtensionDtype))
1743
- and hasattr(arr, "_hasna")
1744
- and arr._hasna
+ if isinstance(arr.dtype, (BaseMaskedDtype, ExtensionDtype)) and hasattr(
+ arr, "_hasna"
1745
):
1746
na_value = arr.dtype.na_value
1747
0 commit comments