I am new to python and I am facing problem in creating a Dataframe using pandas:
import pandas as pd
df = spark.createDataFrame([(66, "a", "4"),
(67, "a", "0"),
(70, "b", "4"),
(71, "d", "4")],
("id", "code", "amt"))
dfa = pd.DataFrame(data=df)
This is the error I am getting
ValueError: DataFrame constructor not properly called!