code: def scalar_stats(data, functions=('min', 'max', 'mean', 'std')):
      '''Calculate the stats from the given numpy functions
  
      Parameters:
          data: array of data points to be used for the stats
  
      Options:
          functions: tuple of numpy stat functions to apply on data
  
      Returns:
          Dictionary with the name of the function as key and the result
          as the respective value
      '''
      stats = {}
      for func in functions:
  
          stats[func] = getattr(np, func)(data)
  
      return statf scalar_stats(data, functions=('min', 'max', 'mean', 'std')):
      '''Calculate the stats from the given numpy functions
  
      Parameters:
          data: array of data points to be used for the stats
  
      Options:
          functions: tuple of numpy stat functions to apply on data
  
      Returns:
          Dictionary with the name of the function as key and the result
          as the respective value
      '''
      stats = {}
      for func in functions:
  
          stats[func] = getattr(np, func)(data)
  
      return stats
docs: Calculate the stats from the given numpy functions
  
      Parameters:
          data: array of data points to be used for the stats
  
      Options:
          functions: tuple of numpy stat functions to apply on data
  
      Returns:
          Dictionary with the name of the function as key and the result
          as the respective value