code: def createExternalTable(self, tableName, path=None, source=None, schema=None, **options):
          
          return self.sparkSession.catalog.createExternalTable(
              tableName, path, source, schema, **options)
docs: Creates an external table based on the dataset in a data source.
  
          It returns the DataFrame associated with the external table.
  
          The data source is specified by the ``source`` and a set of ``options``.
          If ``source`` is not specified, the default data source configured by
          ``spark.sql.sources.default`` will be used.
  
          Optionally, a schema can be provided as the schema of the returned :class:`DataFrame` and
          created external table.
  
          :return: :class:`DataFrame`