@since(2.0)
def table(self, tableName):
    'Returns the specified table as a :class:`DataFrame`.\n\n        :return: :class:`DataFrame`\n\n        >>> df.createOrReplaceTempView("table1")\n        >>> df2 = spark.table("table1")\n        >>> sorted(df.collect()) == sorted(df2.collect())\n        True\n        '
    return DataFrame(self._jsparkSession.table(tableName), self._wrapped)
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
@since(2.0)
def table(self, tableName):
    'Returns the specified table as a :class:`DataFrame`.\n\n        :return: :class:`DataFrame`\n\n        >>> df.createOrReplaceTempView("table1")\n        >>> df2 = spark.table("table1")\n        >>> sorted(df.collect()) == sorted(df2.collect())\n        True\n        '
    return DataFrame(self._jsparkSession.table(tableName), self._wrapped)