Skip to content

Commit 67ea739

Browse files
authored
CLN: clean up blocks.py (#36534)
1 parent 4291973 commit 67ea739

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

pandas/core/internals/blocks.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ def _holder(self):
175175

176176
@property
177177
def _consolidate_key(self):
178-
return (self._can_consolidate, self.dtype.name)
178+
return self._can_consolidate, self.dtype.name
179179

180180
@property
181181
def is_view(self) -> bool:
@@ -1363,6 +1363,7 @@ def where(
13631363
errors : str, {'raise', 'ignore'}, default 'raise'
13641364
- ``raise`` : allow exceptions to be raised
13651365
- ``ignore`` : suppress exceptions. On error return original object
1366+
try_cast: bool, default False
13661367
axis : int, default 0
13671368
13681369
Returns
@@ -1633,8 +1634,8 @@ def __init__(self, values, placement, ndim=None):
16331634
def shape(self):
16341635
# TODO(EA2D): override unnecessary with 2D EAs
16351636
if self.ndim == 1:
1636-
return ((len(self.values)),)
1637-
return (len(self.mgr_locs), len(self.values))
1637+
return (len(self.values),)
1638+
return len(self.mgr_locs), len(self.values)
16381639

16391640
def iget(self, col):
16401641

0 commit comments

Comments
 (0)