使用熊猫无法过滤列的loc命令

时间:2021-07-14 16:42:29

标签: python pandas dataframe

尝试在列上运行 loc 命令以过滤 certrain 条目,但在执行 df.shape 后在数据框中未显示任何行

enter image description here

df1 = df[df['spindle'] == '2']
print(df1.shape)

我不确定问题是否与主轴列中的空格有关,但不确定如何解决...

0 个答案:

没有答案