# Create an Example Spark DataFrame schema = StructType([ StructField("id", LongType(), nullable=False), StructField("sentence", StringType(), nullable=False) ]) data = [ Row(1, "It is a good test for Spark."), Row(2, "Spark DataFrames are powerful."), Row(3, "LLMs could be very slow."), Row(4, "It is a naive statement.") ] input_df = spark.createDataFrame(data, schema=schema)