I have a dataframe like that :
Text Mail Phone
text_1 mail_1,mail_2,mail_3 ['phone_1', 'phone_2']
text_2 mail_4,mail_5 ['phone_3', 'phone_4']
text_3 mail_6, mail_7,mail_8 ['phone_5']
. . .
text_n mail_x ['phone_y', 'phone_y+1']
. . .
I want to obtain a dataframe like that :
Text Mail Phone
text1 mail_1 phone_1
text1 mail_2 phone_2
text1 mail_3 ?
text2 mail_4 phone_3
text2 mail_5 phone_4
text3 mail_6 phone_5
text3 mail_7 ?
text3 mail_8 ?
text_n mail_x phone_y
text_n ? phone_y+1
For each row of the initial dataframe, the number of mail(s) and phone(s) is variable and can be 0.
Regards,