I have pandas dataframe
df_1 = pd.DataFrame({'x' : [a, b, c, d], 'y' : [e, f, g, h]})
I need to get from string like this:
(first_element_from_first_row,first_element_from_second_row),
(second_element_from_first_row,second_element_from_second_row),
................................................................
(last_element_from_first_row,last_element_from_second_row);
at the end should be semicolon.
in my case the answer should be:
(a,e),(b,f),(c,g),(d,h);
How should I solve my problem?
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…