CProgramDataAnaconda3pythonexe ImathmainpyTraceback most recent call last File CProgramDataAnaconda3libsite-packagespandascoreindexesbasepy line 3361 in get_loc return self_engineget_loccasted_key
The error message indicates that there is a KeyError for the column '单品编码' in the DataFrame. This means that the column '单品编码' does not exist in the DataFrame.
To resolve this issue, you can check the column names in the DataFrame and ensure that the column '单品编码' is present. You can use the df.columns attribute to see the list of column names in the DataFrame.
If the column name is incorrect or missing, you can modify the code to use the correct column name or add the missing column to the DataFrame.
原文地址: http://www.cveoy.top/t/topic/i1XL 著作权归作者所有。请勿转载和采集!