I have two dataframes. df1 has a shape of (64, 10) while df2 has a shape of (64, 1).
I have been trying to concat the two but it shows error.
It's been bugging me for a while. Thanks!
pdff = pd.concat([df1, df2], ignore_index=True, sort=False, axis=1)
File "C:\Python37\lib\site-packages\pandas\core\reshape\concat.py", line 287, in concat
return op.get_result()
File "C:\Python37\lib\site-packages\pandas\core\reshape\concat.py", line 503, in get_result
mgrs_indexers, self.new_axes, concat_axis=self.bm_axis, copy=self.copy,
File "C:\Python37\lib\site-packages\pandas\core\internals\concat.py", line 84, in concatenate_block_managers
return BlockManager(blocks, axes)
File "C:\Python37\lib\site-packages\pandas\core\internals\managers.py", line 149, in __init__
self._verify_integrity()
File "C:\Python37\lib\site-packages\pandas\core\internals\managers.py", line 326, in _verify_integrity
raise construction_error(tot_items, block.shape[1:], self.axes)
ValueError: Shape of passed values is (4159, 11), indices imply (127, 11)