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 475e442 commit a4c1485Copy full SHA for a4c1485
pandas/tests/extension/json/array.py
@@ -25,6 +25,7 @@
25
26
import pandas as pd
27
from pandas.api.extensions import ExtensionArray, ExtensionDtype
28
+from pandas.api.types import is_bool_dtype
29
30
31
class JSONDtype(ExtensionDtype):
@@ -80,7 +81,7 @@ def __getitem__(self, item):
80
81
return type(self)(self.data[item])
82
else:
83
item = pd.api.indexers.check_array_indexer(self, item)
- if pd.api.types.is_bool_dtype(item.dtype):
84
+ if is_bool_dtype(item.dtype):
85
return self._from_sequence([x for x, m in zip(self, item) if m])
86
# integer
87
return type(self)([self.data[i] for i in item])
0 commit comments