code: def queryByPortSensor(portiaConfig, edgeId, port, sensor, strategy=SummaryStrategies.PER_HOUR, interval=1, params={ 'from': None, 'to': None, 'order': None, 'precision': 'ms', 'fill':'none', 'min': True, 'max': True, 'sum': True, 'avg': True, 'median': False, 'mode': False, 'stddev': False, 'spread': False }):
      
  
      header = {'Accept': 'text/csv'}
      endpoint = '/summary/device/{0}/port/{1}/sensor/{2}/{3}/{4}{5}'.format( edgeId, port, sensor, resolveStrategy(strategy), interval, utils.buildGetParams(params) )
      response = utils.httpGetRequest(portiaConfig, endpoint, header)
  
      if response.status_code == 200:
          try:
  
              dimensionSeries = pandas.read_csv( StringIO(response.text), sep=';' )
              if portiaConfig['debug']:
                  print( '[portia-debug]: {0} rows'.format( len(dimensionSeries.index) ) )
  
              return dimensionSeries
  
          except:
              raise Exception('couldn\'t create pandas data frame')
      else:
          raise Exception('couldn\'t retrieve data')
docs: Returns a pandas data frame with the portia select resultset