I have a form data frame of results
TOTEXPPQ TOTEXPCQ FINLWT21 year quarter 13 1 9.183392e+09 5.459961e+09 1271559.398 2 2.907887e+09 1.834126e+09 481169.672
and I tried to split all (the first two) columns into the last. My attempt was
weights = results.pop('FINLWT21') results/weights
But I get
ValueError: cannot join with no level specified and no overlapping names
I don't get: there are overlapping names in the index:
weights.head() year quarter 13 1 1271559.398 2 481169.672
Perhaps the best way to make this separation? Do I need to reset the index?
python pandas
Foobar
source share