简体   繁体   中英

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.

Anyone could help on this please?

尝试:

compare = Search1.where(Search1['Search1UK']>Search1['Search1DE'])

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM