mongodb 名称错误:未定义名称“df_true”

rjee0c15  于 2023-01-20  发布在  Go
关注(0)|答案(1)|浏览(120)
df_true_manual_testing = df_true.tail(10)
for i in range(21416, 21406, -1):
    df_true.drop([i], axis = 0, inplace = True)

df_false_manual_testing = df_false.tail(10)
for i in range(21480, 21470, -1):
    df_false.drop([i], axis = 0, inplace = True)

名称错误:名称“df_true”未定义...

envsm3lx

envsm3lx1#

你能试试以下方法吗?

df_true = pd.read_csv("True.csv") 
df_false = pd.read_csv("Fake.csv")

df_true_manual_testing = df_true.tail(10)
for i in range(21416, 21406, -1):
    df_true.drop([i], axis = 0, inplace = True)

df_false_manual_testing = df_false.tail(10)
for i in range(21480, 21470, -1):
    df_false.drop([i], axis = 0, inplace = True)

相关问题