No video

deloitte interview question in pyspark| pyspark interview questions |

  Рет қаралды 4,006

DEwithDhairy

DEwithDhairy

Күн бұрын

deloitte interview question in pyspark| pyspark interview questions | #interview | #sql |#data
In this video we will be solving DELOITTE interview question in PySpark.
Dataframe Create Code :
======================
1)
product_data = [
(1, 'Laptops', 'Electronics'),
(2, 'Jeans', 'Clothing'),
(3, 'Chairs', 'Home Appliances')
]
product_schema = ['product_id', 'product_name', 'category']
product_df = spark.createDataFrame(data = product_data , schema = product_schema)
product_df.show()
2)
sales_data = [
(1, 2019, 1000.00),
(1, 2020, 1200.00),
(1, 2021, 1100.00),
(2, 2019, 500.00),
(2, 2020, 600.00),
(2, 2021, 900.00),
(3, 2019, 300.00),
(3, 2020, 450.00),
(3, 2021, 400.00)
]
sales_schema = ['product_id', 'year', 'total_sales_revenue']
sales_df = spark.createDataFrame(data = sales_data , schema = sales_schema)
sales_df.show()
Need Help ? Connect With me 1:1 - topmate.io/dew...
SQL Approach and Step by Step Solution Video :
• deloitte interview que...
PySpark Installation and Setup : • Spark Installation | P...
DSA In Python Interview Series : • dsa for data engineer ...
PySpark Interview Series : • pyspark interview ques...
Pandas Interview Series : • pandas interview quest...
SQL Interview Series : • sql interview question...
Let's connect on LinkedIn : / dhirajgupta141
#deloitte #sql #interview #dataengineers #dataanalytics #datascience #StrataScratch #Facebook #data #dataengineeringinterview #codechallenge #datascientist #pyspark #CodingInterview
#dsafordataguy

Пікірлер: 10
@jhonsen9842
@jhonsen9842 3 ай бұрын
what is the need to considering -ve values becuase -ve value proves there is no increasement in revenue. We can directely filter the value on the basis of +ve value.
@vickywaran7243
@vickywaran7243 7 ай бұрын
Please give the Input data of products for our practice, it will be really helpful,thanks
@DEwithDhairy
@DEwithDhairy 7 ай бұрын
Sure Noted You can find the create statement on my linkedin post for this problem.
@DEwithDhairy
@DEwithDhairy 7 ай бұрын
Added!
@DineshP-dp8rx
@DineshP-dp8rx 8 ай бұрын
nice explanation
@DEwithDhairy
@DEwithDhairy 8 ай бұрын
Glad you liked it! Do share it in your network.
@AnandKumar-rh1cv
@AnandKumar-rh1cv 7 ай бұрын
Nice explanation, if possible, plese provide the data as well
@DEwithDhairy
@DEwithDhairy 7 ай бұрын
You can find the data on my LinkedIn post . Next video onwards will provide here also.
@biramdevpawar9902
@biramdevpawar9902 7 ай бұрын
Hey Dhiraj, Please add Data into description.
@DEwithDhairy
@DEwithDhairy 7 ай бұрын
Added!
Little brothers couldn't stay calm when they noticed a bin lorry #shorts
00:32
Fabiosa Best Lifehacks
Рет қаралды 20 МЛН
КТО ЛЮБИТ ГРИБЫ?? #shorts
00:24
Паша Осадчий
Рет қаралды 3,7 МЛН
Zombie Boy Saved My Life 💚
00:29
Alan Chikin Chow
Рет қаралды 27 МЛН