I have an array that looks like this:
{'loc.1': array([ 1,2,3,4,7,5,6]),'loc.2': array([ 3,4,3,7,7,8,6]),'loc.3': array([ 1,4,3,1,7,8,6]).....}
After a = pd.DataFrame(array) it looks like this:
loc.1 loc.2 loc.3
1 3 1
2 4 4
3 3 3
4 7 1
7 7 7
5 8 8
6 6 6
This is however what I want:
Col1. Col.2
loc.1 1,2,3,4,7,5,6
loc.2 3,4,3,7,7,8,6
loc.3 1,4,3,1,7,8,6
I need it in this particular format as I wish to concatenate subsequently with another table. Pandas would be my preferred solution..
Thank you, and apologies if this is a silly question.