I have two or more dataframes in Pandas in a list
A Value1
1 ABC
2 HYT
3 IUF
A Value2
1 IJT
2 GFH
3 QER
When using
df = pd.concat(dfs, axis = 0)
And after writing to CSV, the final output is like this
A Value1 Value2
1 ABC
1 IJT
2 HYT
2 GFH
3 IUF
3 QER
But I'd like it to be like this
A Value1 Value2
1 ABC IJT
2 HYT GFH
3 IUF QER
Can someone point me in the right direction?