parameters: (self, category=None, maxdist=None, maxitems=None, x_col=None, y_col=None)
docstring: Set the location of all the points of interest (POIs) of this category.
           The POIs are connected to the closest node in the Pandana network
           which assumes no impedance between the location of the variable and
           the location of the closest network node.
  
          Parameters
          ----------
          category : string
              The name of the category for this set of POIs
          maxdist : float
              The maximum distance that will later be used in
              find_all_nearest_pois()
          maxitems : int
              The maximum number of items that will later be requested
              in find_all_nearest_pois()
          x_col : pandas.Series (float)
              The x location (longitude) of POIs in this category
          y_col : pandas.Series (float)
              The y location (latitude) of POIs in this category
  
          Returns
          -------
          Nothing
docstring_summary: Set the location of all the points of interest (POIs) of this category.
           The POIs are connected to the closest node in the Pandana network
           which assumes no impedance between the location of the variable and
           the location of the closest network node.
docstring_tokens: Set the location of all the points of interest ( POIs ) of this category . The POIs are connected to the closest node in the Pandana network which assumes no impedance between the location of the variable and the location of the closest network node .
function: def set_pois(self, category=None, maxdist=None, maxitems=None, x_col=None, y_col=None):
          """
          Set the location of all the points of interest (POIs) of this category.
           The POIs are connected to the closest node in the Pandana network
           which assumes no impedance between the location of the variable and
           the location of the closest network node.
  
          Parameters
          ----------
          category : string
              The name of the category for this set of POIs
          maxdist : float
              The maximum distance that will later be used in
              find_all_nearest_pois()
          maxitems : int
              The maximum number of items that will later be requested
              in find_all_nearest_pois()
          x_col : pandas.Series (float)
              The x location (longitude) of POIs in this category
          y_col : pandas.Series (float)
              The y location (latitude) of POIs in this category
  
          Returns
          -------
          Nothing
  
          """
          # condition to check if missing arguments for keyword arguments using set_pois() from v0.3
          if maxitems is None:
              print('Reading parameters from init_pois()')
              maxitems = self.max_pois
  
          # condition to check for positional arguments in set_pois() from v0.3
          elif isinstance(maxitems, type(pd.Series())):
              y_col = maxitems
              maxitems = self.max_pois
  
          if maxdist is None:
              print('Reading parameters from init_pois()')
              maxdist = self.max_dist
  
          elif isinstance(maxdist, type(pd.Series())):
              x_col = maxdist
              maxdist = self.max_dist
  
          if category not in self.poi_category_names:
              self.poi_category_names.append(category)
  
          self.max_pois = maxitems
  
          node_ids = self.get_node_ids(x_col, y_col)
  
          self.poi_category_indexes[category] = node_ids.index
  
          node_idx = self._node_indexes(node_ids)
  
          self.net.initialize_category(maxdist, maxitems, category.encode('utf-8'), node_idx.values)
function_tokens: def set_pois ( self , category = None , maxdist = None , maxitems = None , x_col = None , y_col = None ) : # condition to check if missing arguments for keyword arguments using set_pois() from v0.3 if maxitems is None : print ( 'Reading parameters from init_pois()' ) maxitems = self . max_pois # condition to check for positional arguments in set_pois() from v0.3 elif isinstance ( maxitems , type ( pd . Series ( ) ) ) : y_col = maxitems maxitems = self . max_pois if maxdist is None : print ( 'Reading parameters from init_pois()' ) maxdist = self . max_dist elif isinstance ( maxdist , type ( pd . Series ( ) ) ) : x_col = maxdist maxdist = self . max_dist if category not in self . poi_category_names : self . poi_category_names . append ( category ) self . max_pois = maxitems node_ids = self . get_node_ids ( x_col , y_col ) self . poi_category_indexes [ category ] = node_ids . index node_idx = self . _node_indexes ( node_ids ) self . net . initialize_category ( maxdist , maxitems , category . encode ( 'utf-8' ) , node_idx . values )