Description of error reporting:
Today, when reading Excel data and processing the data, an error is reported as follows:
Error reason:
The Excel table data read in by pandas is not aligned. Please check the Excel table data read in
I print out the dataframe after reading it into Excel
Solution:
Delete Sheet2 and Sheet3 in the Excel table, so that Pandas will align after reading the Excel table data
The root cause of such problems is that the data is not aligned
Debug method: 1. Print out the dataframe data and check the format of the data after it is read in. 2. Then adjust the read data
Read More:
- Python Pandas Error: KeyError: 0 [How to Solve]
- numpy.concatenate() 253rd; 38169Keyerror: 0 [How to Solve]
- odoo Error: KeyError:‘ir.http‘ [How to Solve]
- How to Solve Automatic error keyerror:***‘
- How to Fix keyerror in Python dictionary lookup
- Flash cli encountered a keyerror “migrate” [How to Solve]
- [Solved] PyTorch Lightning Error: KeyError: ‘hidden_states‘
- [Solved] flash initializate database error: Keyerror: ‘migrate’
- Python quote error: * * * keyerror: u ‘\ uxx’ [How to Solve]
- [Solved] pytorch Error: KeyError: tensor(2, device=‘cuda:0‘)
- KeyError: b ‘TEST’ problem in python3 conversion from csn-rcnn code
- [Solved] KeyError: ‘Transformer/encoderblock_0/MultiHeadDotProductAttention_1/query\\kernel is
- Error in sitecustomize set PYTHONVERBOSE for traceback KeyError: ‘PYTHONPATH’
- [Solved] D455 Depth Camera Error: keyerror: ‘frame_ device_ t‘
- [Solved] fit function error: KeyError: ‘squared_error‘
- visdom Install and Run Error: raise Connectionerror [How to Solve]
- [Solved] raise ContentTooShortError(urllib.error.ContentTooShortError: <urlopen error retrieval incomplete:
- [Solved] python tqdm raise RuntimeError(“cannot join current thread“) RuntimeError: cannot join current thr
- [Solved] Saving to Database Error: pymysql.err.DataError: (1366, “Incorrect string value…