问题
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?
回答1:
try:
compare = Search1.where(Search1['Search1UK']>Search1['Search1DE'])
来源:https://stackoverflow.com/questions/55163796/array-conditional-must-be-same-shape-as-self