解决 ValueError: Shape of passed values is (7, 5), indices imply (7, 3)

Exception:
Traceback (most recent call last):
File “”, line 1, in
File “ncat.py”, line 226, in concat
return op.get_result()
File “at.py”, line 423, in get_result
copy=self.copy)
File “ernals.py”, line 5425, in concatenate_block_managers
return BlockManager(blocks, axes)
File “rnals.py”, line 3282, in init
self._verify_integrity()
File “nals.py”, line 3493, in _verify_integrity
construction_error(tot_items, block.shape[1:], self.axes)
File “ternals.py”, line 4843, in construction_error
passed, implied))

报错原因:
concat([a,b],axis=1),其中a和b的index 长度不对齐,

你可能感兴趣的:(Python,问题解决)