简体   繁体   中英

raise KeyError(key) from err

I'm a beginner in Python and ML. I've been struggling with this.

print('Highest Mean of the DM-SNR curve was: ', train['Mean of the DM-SNR curve'].max())
print('Highest Mean of the DM-SNR curve was: ', train['Mean of the DM-SNR curve'].min())
print('Highest Mean of the DM-SNR curve was: ', train['Mean of the DM-SNR curve'].mean())

enter image description here

Could you help me plz? I'm REALLY waiting for your reply.

That error is just saying that the column 'Mean of the DM-SNR curve' of your dataframe does not actually exist. We can't really help you more if you don't give us more details

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM