i have a dataframe 'df' with three columns. i wish to display the distinct IP's and total instances with respect to them.
Name IP Instances
amy 172.16.1.98 2
amy 172.16.1.98 1
amy 172.16.1.98 1
amy 172.16.2.239 2
amy 172.16.2.239 2
amy 172.16.2.239 112
amy 172.16.2.239 1
amy 172.16.3.39 2
amy 172.16.3.39 1
amy 172.16.3.39 1
output ex- 172.16.3.39 4, 172.16.2.239 117 etc...
I am new to pandas any help would be of great use.