code: def calc_x_from_L(L, y):
      
      x = L.dot(y)
      if type(x) is pd.Series:
          x = pd.DataFrame(x)
      if type(x) is pd.DataFrame:
          x.columns = ['indout']
      return x
docs: Calculate the industry output x from L and a y vector
  
      Parameters
      ----------
      L : pandas.DataFrame or numpy.array
          Symmetric input output Leontief table
      y : pandas.DataFrame or numpy.array
          a column vector of the total final demand
  
      Returns
      -------
      pandas.DataFrame or numpy.array
          Industry output x as column vector
          The type is determined by the type of L. If DataFrame index as L