I have a large dataset ~1mln rows, and about 5000 absent coordinates(i’d like to fill them with median value by category ‘city’everything but fillna is working, how to make it happen? Answer You could do: First groupby with the city, then use transform with fillna and calculate the median. (you could use any mathematical operation)
Tag: median
Verify Median Value with Area Under the Curve Calculation
I want to calculate the area under this curve for confirmation that the size is correct. How would one go about doing this? I have a frequency plot below. The package utilized for this median calculation is here: https://github.com/nudomarinero/wquantiles I started with thinking the trapezoid method could be utilized to verify that value How can I write something so when