Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

append方法失效 #18

Open
Kingzsf opened this issue Oct 16, 2023 · 1 comment
Open

append方法失效 #18

Kingzsf opened this issue Oct 16, 2023 · 1 comment

Comments

@Kingzsf
Copy link

Kingzsf commented Oct 16, 2023

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

@EverlastingYuki
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants