I have defined such a dataframe:
from pyspark.sql.types import StructType, StructField, IntegerType, StringType
schema = StructType([
StructField("date", StringType(), True), StructField("amount", StringType(), False), StructField("fontred", StringType(), False)
])
and I have such a list:
Elements=['01.07.', '01.07.', '02.07.', '02.07.', '02.07.', '02.07.']
How can I add elements of this list to first column of dataframe?
date amount fontred
----------------------------
01.07.
01.07.
02.07.
02.07.
02.07.
02.07.