[英]Array conditional must be same shape as self
I get this error when I attempt to compare to variable names such as: 当我尝试与变量名称进行比较时出现此错误:
compare = Search1.where(Search1UK>Search1DE)
compare
compare.fillna(0)
'Search1UK' and 'Search1DE' are both variable names in which I have assigned a name to identify columns within different data frames. “ Search1UK”和“ Search1DE”都是变量名,在其中我分配了一个名称来标识不同数据框中的列。
Anyone could help on this please? 任何人都可以帮忙吗?
尝试:
compare = Search1.where(Search1['Search1UK']>Search1['Search1DE'])
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.