I get this error when I attempt to compare to variable names such as:
compare = Search1.where(Search1UK>Search1DE) compare compare.fillna(0)
try:
compare = Search1.where(Search1['Search1UK']>Search1['Search1DE'])