熊猫查询功能无法正确评估/设置问题

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.

enter image description here