I have two dataframes, structured something like
# df1
data1 data2
id feature_count
12345 1 111 888
2 222 999
3 333 101010
45678 0 444 111111
2 555 121212
3 666 131313
4 777 141414
and
# df2
descriptor
id
12345 "foo"
45678 "bar"
Based on this solution it seems like I should simply be able to do df1.join(df2) to get the desired result
#joined
data1 data2 descriptor
id feature_count
12345 1 111 888 "foo"
2 222 999 "foo"
3 333 101010 "foo"
45678 0 444 111111 "bar"
2 555 121212 "bar"
3 666 131313 "bar"
4 777 141414 "bar"
However, what I actually get is NotImplementedError: Index._join_level on non-unique index is not implemented in Pandas 1.0.5.
This seems like it shouldn't be complicated, but I'm clearly misunderstanding something. All I'm looking for is to append the column of unique mappings in df2 on to the (guaranteed existing mapping) first index of df1.