def jsc(sc):
    """Returns the underlying Scala SparkContext

    :param sc: SparkContext
    :return: :class:`py4j.java_gateway.JavaObject` (org.apache.spark.SparkContext)
    """
    return sc._jsc.sc()