查看是否引起布尔语句的歧义。 排除二义性就行了。 完美解决~ 其他参考 错误解决1:UserWarning: Boolean Series key will be reindexed to match DataFrame index