I have 2 dataframes .... big_df and small_df
big_df
------
Typ col1 col2 col3 ...
A None None None ...
B None None None ...
A None None None ...
C None None None ...
B None None None ...
D None None None ...
E None None None ...
F None None None ...
.
.
.
small_df
------
Typ col1 col3 col8 ...
A 1.2 'a' 3
E 2.2 'z' 5
L 0.5 'w' 4
.
.
.
I need to efficiently update big_df fields using the values in small_df.
Typ is not unique in big_df.
Both DF(s) are currently indexed numerically ...0,1,2,3 .... and so on
Attempt to reindex both DF(s) by Typ will throw:
ValueError: cannot reindex from a duplicate axis
I would appreciate any suggestion/code example on best way to do this.