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 7f78a64 commit 36b171bCopy full SHA for 36b171b
pandas/tests/arrays/test_boolean.py
@@ -360,6 +360,19 @@ def get_op_from_name(self, op_name):
360
361
return op
362
363
+ def test_empty_ok(self, all_logical_operators):
364
+ a = pd.array([], dtype="boolean")
365
+ op_name = all_logical_operators
366
+ result = getattr(a, op_name)(True)
367
+ tm.assert_extension_array_equal(a, result)
368
+
369
+ result = getattr(a, op_name)(False)
370
371
372
+ # TODO: pd.NA
373
+ # result = getattr(a, op_name)(pd.NA)
374
+ # tm.assert_extension_array_equal(a, result)
375
376
def test_logical_length_mismatch_raises(self, all_logical_operators):
377
op_name = all_logical_operators
378
a = pd.array([True, False, None], dtype="boolean")
0 commit comments