Skip to content

Commit d4ce3df

Browse files
fix pep8
1 parent 8c6f4a7 commit d4ce3df

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

pandas/core/internals.py

-2
Original file line numberDiff line numberDiff line change
@@ -2894,8 +2894,6 @@ def concat_same_type(self, to_concat):
28942894

28952895
return self.make_block_same_class(
28962896
values, placement=slice(0, len(values), 1))
2897-
#else:
2898-
# return make_block(values, placement=slice(0, len(values), 1))
28992897

29002898

29012899
def make_block(values, placement, klass=None, ndim=None, dtype=None,

pandas/core/reshape/concat.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ def get_result(self):
370370
# check if all series are of the same block type:
371371
if len(non_empties) > 0:
372372
blocks = [obj._data.blocks[0] for obj in non_empties]
373-
if all([type(b) == type(blocks[0]) for b in blocks[1:]]):
373+
if all([type(b) is type(blocks[0]) for b in blocks[1:]]): # noqa
374374
new_block = blocks[0].concat_same_type(blocks)
375375
if isinstance(new_block, SparseBlock):
376376
cons = SparseSeries

0 commit comments

Comments
 (0)