Question 13: KPMG Interview Questions part 2| data engineers | groupBy

  Рет қаралды 598

pysparkpulse

pysparkpulse

Күн бұрын

In this video I have discussed on Interview question asked in KPMG interview for data engineers.
Write a pyspark query to find avg salary of each dept also rename the column.
from pyspark.sql.functions import avg
Sample data
data = [("John", "IT", 5000),
("Alice", "HR", 6000),
("Bob", "IT", 5500),
("Eve", "Finance", 7000),
("Charlie", "HR", 6500),
("David", "Finance", 7500)]
columns = ["Name", "Department", "Salary"]
Create a DataFrame
df = spark.createDataFrame(data, columns)
df.show()
Solution is in PySpark
Part1 Video : • Question 12: KPMG Inte...
Check out this video and do let me know your doubts we can connect on
linkedIn : / priyam-jain-0946ab199
Do subscribe @pysparkpulse for more such Questions.
#pyspark #spark #bigdata #bigdataengineer #dataengineering #dataengineer #deloitte #pwc #mnc #kpmg #interviewquestions

Пікірлер: 4
@rawat7203
@rawat7203 6 ай бұрын
Thank you Sir, keep doing the great work
@pysparkpulse
@pysparkpulse 5 ай бұрын
Yes thank you 🙂
@VIJAYKUMAR-qr8st
@VIJAYKUMAR-qr8st 7 ай бұрын
Thanks for sharing
@pysparkpulse
@pysparkpulse 7 ай бұрын
Thank you for your appreciation
The FASTEST way to PASS SNACKS! #shorts #mingweirocks
00:36
mingweirocks
Рет қаралды 13 МЛН
Matching Picture Challenge with Alfredo Larin's family! 👍
00:37
BigSchool
Рет қаралды 52 МЛН
Three Tricky Analytics Interview Questions with Andrew
25:03
Jay Feng
Рет қаралды 80 М.
Data Engineering System Design Interview Framework
13:49
Data Guy
Рет қаралды 8 М.
Solve KPMG Pyspark Interview Questions
8:43
GeekCoders
Рет қаралды 7 М.