For example, if I have a dataframe as below, I want to do something like val top_src_ip = 58.242.83.11
, but I don't want to fix this number. I want it to be a variable based on a dataframe. What is the command to do it?
+--------------+------------+
| src_ip|src_ip_count|
+--------------+------------+
| 58.242.83.11| 52|
|58.218.198.160| 33|
|58.218.198.175| 22|
|221.194.47.221| 6|