code: def get_income_statement(self, **kwargs):
          
          def fmt(out):
              return {symbol: out[symbol]["income"]
                      for symbol in self.symbols}
  
          def fmt_p(out):
              data = {(symbol, sheet["reportDate"]): sheet for symbol in out
                      for sheet in out[symbol]["income"]}
              return pd.DataFrame(data)
  
          return self._get_endpoint("income", fmt_j=fmt, fmt_p=fmt_p,
                                    params=kwargs)
docs: Income Statement
  
          Pulls income statement data. Available quarterly (4 quarters) or
          annually (4 years).
  
          Reference: https://iexcloud.io/docs/api/#income-statement
  
          Data Weighting: ``1000`` per symbol per period
  
          .. warning:: This endpoint is only available using IEX Cloud. See
                   :ref:`Migrating` for more information.
  
          Parameters
          ----------
          period: str, default 'quarterly', optional
               Allows you to specify annual or quarterly income statement.
               Defaults to quarterly. Values should be annual or quarter
  
          Returns
          -------
          list or pandas.DataFrame
              Stocks Income Statement endpoint data