我试图删除基于查询结果的行,但它给了我这个错误
df2.drop(df.query('group == "treatment" and landing_page !="new_page" or group != "treatment" and landing_page =="new_page"'),axis=1)
显示的错误是
ValueError: labels ['user_id' 'timestamp' 'group' 'landing_page' 'converted'] not contained in axis
Tags:
使用
index
的query
输出和axis=0
作为行:相关问题 更多 >
编程相关推荐