Xi = pd.DataFrame([("Guyana", 5.78, 6.89), ("Paraguay", 7.29, 8.5), ("Ecuador", 9.35, 10.92), ("Peru", 9.96, 11.55), ("Kolumbien", 10.9, 12.71),
("Costa Rica", 13.0, 14.27), ("Brasilien", 14.4, 15.23), ("Venezuela", 16.56, 16.77), ("Argentina", 18.71, 18.8), ("Chile", 19.36, 21.92)], columns=["country", "GDP/L 2010", "GDP/L 2014"])
Xi.describe()
So obviously the 75% quantile is (N+1)*3/4 which gives us Xi with i = 8,25. So the 75% quantile for 2010 equals 17,635 and not like the describe() method outputs 16,02. Why is that?
I've been looking into it and for some reason it seems that both functions describe() and quantile(0.75) return the wrong value of the percentile 75%. Even more, they return the correct percentile 75% if the last row did not exist (these methods are not taking into account the last row).