代码很烂:
import pandas as pd
df = pd.read_csv("../data/instance.csv")
df["isdploy"] = False
df.loc[0]["isdploy"] = True # error
df["isdploy"][0] = True # error
,错误是:
SettingWithCopyWarning: 试图在DataFrame的切片副本上设置一个值
instance.csv为: ,instanceid,appid 0,inst_157,app_50 1,inst_1837,app_3654