'Pyspark count giving different results

enter image description here

I don't know what's the reason behind this unusual behaviour. 'price' is of type double.

Please help!



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source