Skip to content

Commit 6da78f3

Browse files
code formatting
1 parent 4c5382a commit 6da78f3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/core/generic.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10104,8 +10104,8 @@ def _where(
1010410104
cond = np.asanyarray(cond)
1010510105
if cond.shape == ():
1010610106
# Note: DataFrame(True, index=[1,2,3], columns=["a", "b", "c"]) works
10107-
# but DataFrame(np.array(True), index=[1,2,3], columns=["a", "b", "c"]) does not
10108-
# hence we need to unpack scalar
10107+
# but DataFrame(np.array(True), index=[1,2,3], columns=["a", "b", "c"])
10108+
# does not hence we need to unpack scalar
1010910109
cond = cond.item()
1011010110
elif cond.shape != self.shape:
1011110111
raise ValueError("Array conditional must be same shape as self")

0 commit comments

Comments
 (0)