I want to crosstab two series(s1 and s2) and it´s appearing the following error:" cannot reindex from a duplicate axis"
s1=pd.Series(['ot','bx','bx','bx','ot','ot','med','med','bx','med'],index=['a','b','c','a','b','c','a','b','c','a'])
s2=pd.Series(['adulto','adulto','idoso','adulto','jovem','jovem','adulto','jovem','jovem','adulto'],index=['a','b','c','a','b','c','a','b','c','a'])
print(pd.crosstab(s1,s2))
I´ve tried to change the index, but it didn´t work.