I have this dataframe
Seller Product Price
1 A 10.00
2 A 5.0
3 A 7.50
4 A 3.75
What I want as Output:
Seller Product Price Quartil_1 Quartil_2 Quartil_3 Quartil_4 Rank_Price
1 A 10.00 2.5 5.0 7.5 10 4
2 A 5.0 2.5 5.0 7.5 10 2
3 A 7.50 2.5 5.0 7.5 10 3
4 A 3.35 2.5 5.0 7.5 10 1
So, my dataframe will have several sellers selling the same price for different prices. I need to calculate de 4 quartils of prices, considering all sellers for he same product and then classify each seller's price in this quartils, like the example above.
I know how to do it in python, using groupby, quartiles and rank but I am pretty new to Julia.
If someone can give a hand, please, i appreciate.