Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- code
- ---
- newframe=pd.concat(frames,axis=1)
- error:
- ---
- `Traceback (most recent call last):
- File "aws_get_memory.py", line 370, in <module>
- main()
- File "aws_get_memory.py", line 356, in main
- convert_to_csv(csv_path,text_path,hosts_list)
- File "aws_get_memory.py", line 166, in convert_to_csv
- newframe=pd.concat(frames,axis=1)
- File "/home/tdun0002/.local/lib/python3.6/site-packages/pandas/core/reshape/concat.py", line 284, in concat
- return op.get_result()
- File "/home/tdun0002/.local/lib/python3.6/site-packages/pandas/core/reshape/concat.py", line 497, in get_result
- mgrs_indexers, self.new_axes, concat_axis=self.axis, copy=self.copy
- File "/home/tdun0002/.local/lib/python3.6/site-packages/pandas/core/internals/managers.py", line 2027, in concatenate_block_managers
- return BlockManager(blocks, axes)
- File "/home/tdun0002/.local/lib/python3.6/site-packages/pandas/core/internals/managers.py", line 139, in __init__
- self._verify_integrity()
- File "/home/tdun0002/.local/lib/python3.6/site-packages/pandas/core/internals/managers.py", line 334, in _verify_integrity
- construction_error(tot_items, block.shape[1:], self.axes)
- File "/home/tdun0002/.local/lib/python3.6/site-packages/pandas/core/internals/managers.py", line 1694, in construction_error
- raise ValueError(f"Shape of passed values is {passed}, indices imply {implied}")
- ValueError: Shape of passed values is (454, 3), indices imply (74, 3)`
Add Comment
Please, Sign In to add comment