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:
www.geekcoders...
2. Azure Course:
www.geekcoders...
3. Master in Python:
www.geekcoders...
4. Git and Linux:
www.geekcoders...
Join my telegram group
Telegram:
t.me/+LyMR8_SI...
Follow me on Linkedin:
/ sagar-prajapati-86073b155
#interviewquestion #pysparkinterview
Негізгі бет Solve using REGEXP_REPLACE and REGEXP_EXTRACT in PySpark
Пікірлер