熊猫查询功能无法正确评估/设置问题 由 櫻花~祭发布于 2020-05-23 20:59:05 Why does df.query("ColumnB > '6'") evaluate to the second row of the dataframe only? Expected answer was second to fifth row because those are rows where the values in Column B are greater than 6.
You need to convert
ColumnB
intoint
: