union's merge works fine, now I need to merge union and GDP so I have the union of 3 sets.
union = pd.merge(energy, ScimEn, how='outer', left_index=True, right_index=True)
allunion = pd.merge(GDP, union, how='outer', left_index=True, right_index=True)
allunion's merge returns :
File "pandas/_libs/join_helper.pxi", line 1063, in
pandas._libs.join.outer_join_indexer_object
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position
18: ordinal not in range(128)
how can I fix this? Even if I combine them directly in one statement it does the same, I also set set_index
of all Dataframes to be the same and merge inner worked before.