Hello Geeks,
data=[(1,"Sagar-Prajapati"),(2,"Alex-John"),(3,"John Cena"),(4,"Kim Joe")]
schema="ID int,Name string"
df=spark.createDataFrame(data,schema)
If you want to build projects on Azure and Databricks, then check out the below courses
1. Delta-Lake using Databricks:
https://www.geekcoders.co.in/courses/...
2. Azure Course:
https://www.geekcoders.co.in/courses/...
3. Master in Python:
https://www.geekcoders.co.in/courses/...
4. Git and Linux:
https://www.geekcoders.co.in/courses/...
Join my telegram group
Telegram:
https://t.me/+LyMR8_SIJ284NDA1
Follow me on Linkedin:
/ sagar-prajapati-86073b155
#interviewquestion #pysparkinterview