title: Python Pandas <pandas.core.groupby.DataFrameGroupBy object at ...>
body: <p>I am trying to group and count the same info in a row:</p>
  
  <pre><code>#Functions
  
  def postal_saude ():
      global df, lista_solic
  
      #List of solicitantes in Postal Saude
      list_sol = [lista_solic["name1"], lista_solic["name2"]]
  
      #filter Postal Saude Solicitantes
      df = df[(df['Cliente']==lista_clientes["6"]) 
          &amp; (df['Nome do solicitante'].isin(list_sol))]
  
      #Alphabetical order
      df = df.sort_index(by=['Nome do solicitante', 'nomeCorrespondente'])
  
      #Grouping data of column
      grouping = df.groupby('Tipo do serviços');
  
      print (grouping)
  
  
  postal_saude()
  </code></pre>
  
  <p>When it gets to the <strong>df.groupby</strong> it raises an error</p>
  
  <p><strong></strong></p>
  
  <p>I have tried searching this same error but I have not found a valid answer to help me fix my problem.</p>