Train_Custom_Dataset icon indicating copy to clipboard operation
Train_Custom_Dataset copied to clipboard

append方法失效

Open Kingzsf opened this issue 2 years ago • 1 comments

大佬!!在代码中append方法已经用不了了怎么办?df = df.append({'类别':fruit, '文件名':file, '图像宽':img.shape【1】, '图像高':img.shape【0】}, ignore_index=True)

Kingzsf avatar Oct 16 '23 09:10 Kingzsf

append前面加个下划线就可以了,比如df_train_log = df_train_log._append(log_train, ignore_index=True)

EverlastingYuki avatar Jan 24 '24 08:01 EverlastingYuki