I'm pandas newbie
for example I have dataframe as below
code time open high low close
1 2 1 1 1 1
2 1 1 1 1 1
2 2 1 1 1 1
and
- I want column split by code
- I want concat these splited data on index by time and fill NaN
like below
"1" "2"
time(index) open high low close open high low close
1 NaN NaN NaN NaN 1 1 1 1
2 1 1 1 1 1 1 1 1
is there any way using pandas?