Skip to content
Advertisement

Pandas pivot value are merged

Hi have data like below

JavaScript
JavaScript

result like below

JavaScript

I want the sum of qty value

Advertisement

Answer

Based on the output, it seems to me that “qty” a “string” dtype. Try forcing it to be a “float” and try again:

JavaScript
Advertisement