def get_spark_df(spark, data, schema):
    """
    This function returns a spark data frame
    :param spark: Spark session
    :param data: data fields
    :param schema: schema of the data fields
    :return: spark data frame
    """
    df = spark.createDataFrame(data=data, schema=schema)
    return df