code: def calcPunkProp(sNow):
      '''
      Calculates the proportion of punks in the population, given data from each type.
  
      Parameters
      ----------
      pNow : [np.array]
          List of arrays of binary data, representing the fashion choice of each
          agent in each type of this market (0=jock, 1=punk).
      pop_size : [int]
          List with the number of agents of each type in the market.  Unused.
      '''
      sNowX = np.asarray(sNow).flatten()
      pNow  = np.mean(sNowX)
      return FashionMarketInfo(pNowf calcPunkProp(sNow):
      '''
      Calculates the proportion of punks in the population, given data from each type.
  
      Parameters
      ----------
      pNow : [np.array]
          List of arrays of binary data, representing the fashion choice of each
          agent in each type of this market (0=jock, 1=punk).
      pop_size : [int]
          List with the number of agents of each type in the market.  Unused.
      '''
      sNowX = np.asarray(sNow).flatten()
      pNow  = np.mean(sNowX)
      return FashionMarketInfo(pNow)
docs: Calculates the proportion of punks in the population, given data from each type.
  
      Parameters
      ----------
      pNow : [np.array]
          List of arrays of binary data, representing the fashion choice of each
          agent in each type of this market (0=jock, 1=punk).
      pop_size : [int]
          List with the number of agents of each type in the market.  Unused.