title: How to add filters so that I can group employees reporting to manager ?? Please guide me. Also let me know if the below code is correct or not
body: <pre><code>import requests
  import pandas as pd
  import io
  
  """reading url""" 
  """Creating the dataframe"""
  
  urlData=requests.get(http://demo.rahierp.com/desk#List/Employee/List).content
  
  df = pd.read_csv(io.StrigIO(urlData.decode('utf-8')))
  
   """Print the dataframe"""
  
   df
  
   """applying groupby() function to"""
  
  """group the data on reports_to"""
  
   gk = df.groupby('Reports To')
  
   gk
  
  
  for Reports To,reports_to_df in gk:
  
  print(Reports To)
  
  print(reports_to_df) 
  </code></pre>