@since(2.0)
def newSession(self):
    '\n        Returns a new SparkSession as new session, that has separate SQLConf,\n        registered temporary views and UDFs, but shared SparkContext and\n        table cache.\n        '
    return self.__class__(self._sc, self._jsparkSession.newSession())
Returns a new SparkSession as new session, that has separate SQLConf,
registered temporary views and UDFs, but shared SparkContext and
table cache.
@since(2.0)
def newSession(self):
    '\n        Returns a new SparkSession as new session, that has separate SQLConf,\n        registered temporary views and UDFs, but shared SparkContext and\n        table cache.\n        '
    return self.__class__(self._sc, self._jsparkSession.newSession())