Am trying to merge the multiindexed dataframe in a for loop into a single dataframe on index.
i have a reproducible code at https://gist.github.com/RJUNS/f4ad32d9b6da8cf4bedde0046a26f368#file-prices-py I wanted to post the code here, but i got an error 'your post has lots of code' therefore i posted it on gist.
But it produces this:
CLOSE HIGH LOW OPEN VOLUME 2017-09-08 09:30:00 VEDL 330.2 330.40 328.3 329.10 1873261 2017-09-08 09:45:00 VEDL 333.1 333.15 329.5 330.15 1643970 2017-09-08 10:00:00 VEDL 332.4 333.20 331.4 333.10 767922 CLOSE HIGH LOW OPEN VOLUME 2017-09-08 09:30:00 INFY 892.65 898.6 892.6 898.05 163020 2017-09-08 09:45:00 INFY 892.45 893.6 891.4 892.80 152179 2017-09-08 10:00:00 INFY 891.55 892.5 891.1 892.40 104931
Am expecting the following output:
CLOSE HIGH LOW OPEN VOLUME 2017-09-08 09:30:00 VEDL 330.2 330.40 328.3 329.10 1873261 INFY 892.65 898.6 892.6 898.05 163020 2017-09-08 09:45:00 VEDL 333.1 333.15 329.5 330.15 1643970 INFY 892.45 893.6 891.4 892.80 152179 2017-09-08 10:00:00 VEDL 332.4 333.20 331.4 333.10 767922 INFY 891.55 892.5 891.1 892.40 104931
I tried using .join method, but i couldn't make it work.
does anyone have any solution please?