I have a dataframe which can be created using the code given below
df = pd.DataFrame({'Person_id':[1,2,3,4],
'Values':['father:1.Yes 2.No 3.Do not Know','Mother:1.Yes 777.No 999.Do not
Know','sons:1.Yes 2.No 321.Do not Know','daughter:1.Yes 567.No 3.Do not Know'],
'Ethnicity':['dffather','dfmother','dfson','dfdaughter']})
The above code produces a dataframe like shown below
I would like to split the content of each row in dataframe and put them as a separate row
How can I get the output to be like this?