条件筛选异常
来源:1-6 Pandas、Numpy、Matplotlib实操
慕移动9534961
2020-12-18
筛选 y 大于50的 x
课程提示:c = data.loc[:, ‘x’][y>50]
系统报错:IndexingError: Unalignable boolean Series provided as indexer (index of the boolean Series and of the indexed object do not match).
写回答
1回答
-
flare_zhao
2020-12-18
把data的x列和y打印出来看看 应该是维度不匹配
022020-12-18
相似问题