这个错误意味着你正在尝试在一个DataFrame的切片副本上设置值,而不是在原始DataFrame上设置值。建议你使用.loc[row_indexer,col_indexer] = value来代替。这样可以确保你在原始DataFrame上设置值。

你好python报错是什么意思nA-value-is-trying-to-be-set-on-a-copy-of-a-slice-from-a-DataFramenTry-using-locrow_indexercol_indexer-=-value-instead

原文地址: https://www.cveoy.top/t/topic/lAD 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录