I have a table containing some countries and their KPI from the world-banks API. this looks like . As you can see no nan values are present.
However, I need to pivot this table to bring int into the right shape for analysis. A pd.pivot_table(countryKPI, index=['germanCName'], columns=['indicator.id'])
For some e.g. TUERKEI
this works just fine:
But for most of the countries strange nan values are introduced. How can I prevent this?