def create_spark_df(spark_session):
    """Create Spark DataFrame from tuple data with first row as schema."""
    def _(data):
        return spark_session.createDataFrame(data[1:], schema=data[0])
    return _