creating the dataframe
data = [
(10,20,11,20),
(20, 11, 10,99),
(10, 11, 20, 1),
(30, 12, 20,99),
(10, 11, 20, 20),
(40, 13, 15, 3),
(30, 8, 11, 99)
]
schema = "A int , B int , C int , D int"
df = spark.createDataFrame(data = data , schema = schema)
display(df)
Need Help ? Connect With me 1:1 - https://topmate.io/dewithdhairy
Let's connect on LinkedIn : / dhirajgupta141
pyspark 30 days challenge : • pyspark 30 days challenge
top interview question and answer in pyspark :
• top interview questions and answers in pys...
PySpark Installation and Setup : • Spark Installation | PySpark Installation ...
DSA In Python Interview Series : • dsa for data engineer | dsa for data analy...
PySpark Interview Series : • pyspark interview questions and answers
Pandas Interview Series : • pandas interview questions and answers
SQL Interview Series : • sql interview questions and answers
Your Queries :
===========
pyspark scenario based interview questions and answers
interview questions and answers for data engineer
fang interview questions and answers for data engineer
joins in pyspark
for loop on pyspark dataframe
#pyspark #americanexpress #dataanalytics #dataengineers #youtube #dataengineers #coding #interview #faang