code: def table(self, tableName):
          
          return DataFrame(self._jsparkSession.table(tableName), self._wrapped)
docs: Returns the specified table as a :class:`DataFrame`.
  
          :return: :class:`DataFrame`
  
          >>> df.createOrReplaceTempView("table1")
          >>> df2 = spark.table("table1")
          >>> sorted(df.collect()) == sorted(df2.collect())
          True