'I want to take user input in Spark dataframe but giving error ['list' object is not callable]
I can not take any inputI have a schema.
schm = StructType([
StructField("ID", IntegerType(), True),
StructField("fixed_credit_limit", IntegerType(), True),
StructField("credit_limit", IntegerType(), True),
StructField("due_amount", IntegerType(), True),
StructField("created_date", StringType(), True),
StructField("updated_date", StringType(), True),
StructField("agent_name_id",IntegerType(), True),
StructField("rfid_id", StringType(), True),
])
input=[(13158,100,100,0,'05/29/2021 11:01:31','05/29/2021 11:01:31',5,'862b4497-577f-47f9-8725-dd6c397ce408')]
df1 = spark.createDataFrame(input, schema)
I want to take the user input of agent_name_id but it gives the error ['list' object is not callable]
how can I take the user input of agent_name_id.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
