Scala - How to Fetch top 10 Product Prices for each Category : I am new to scala and have a DataFrame, I need to find the top 10 product prices for each category_id. top 20 rows of a dataframe is as below
[enter image description here][1]


  [1]: https://i.stack.imgur.com/TezNc.png

Please let me know how to do this.