16. deloitte azure databricks interview questions |

  Рет қаралды 3,087

SS UNITECH

SS UNITECH

Күн бұрын

Пікірлер: 16
@sushantbhardwaj1354
@sushantbhardwaj1354 2 ай бұрын
spark sql and dataframe solution .. df1 = df.groupBy("DeptName").agg(count(when(col("Gender")=='M',1)).alias("Male"),count(when(col("Gender")=='F',1)).alias("Female"),count('*').alias("Total")) df1.show() spark.sql(''' select DeptName,count(case when Gender = 'M' then 1 end ) as male, count(case when Gender = 'F' then 1 end ) as Female, count(*) as total_emp from dept group by DeptName ''').show()
@Javi-gp5jw
@Javi-gp5jw 3 ай бұрын
Great video! Very informative and well-explained. Another solution I tried was : df.groupBy("DeptName") .agg(count('Gender').alias("TotalEmp"), count_if(df12.Gender=='M').alias("MaleEmp"), count_if(df12.Gender=='F').alias("FemaleEmp"), )
@ssunitech6890
@ssunitech6890 3 ай бұрын
Good, Keep Learning and please share videos to your friends
@rawat7203
@rawat7203 5 ай бұрын
Please continue this series, thanks
@ssunitech6890
@ssunitech6890 5 ай бұрын
Sure will record more videos on this playlist
@kt-qg7uv
@kt-qg7uv 6 ай бұрын
Hello sir, I hope you are doing well. I am currently attending interviews I am facing difficulty to explain the SSIS projects in my Resume. Can you please help me with that. Please respond. Thank you
@ssunitech6890
@ssunitech6890 6 ай бұрын
Yes, sure Please find below videos for your project: kzbin.info/aero/PLNRxk1s77zfjbCU-BgnER0hrnf4TvY5A3
@videodevloper277
@videodevloper277 6 ай бұрын
Nice
@ssunitech6890
@ssunitech6890 6 ай бұрын
Thanks, Please share to others
@userbayya
@userbayya 6 ай бұрын
Pls keep code also in description
@ssunitech6890
@ssunitech6890 6 ай бұрын
Sure
@ardsha
@ardsha 5 ай бұрын
this will also bring the result : df.groupBy('DeptName').agg(count(df.Gender).alias('TotalEmp'),sum(when (df.Gender=='M',1)).alias('Male_count'),sum(when(df.Gender=='F',1)).alias('FemaleCount')).show()
@ssunitech6890
@ssunitech6890 5 ай бұрын
Thanks Keep learning and growing 💗
@datasculptor2895
@datasculptor2895 Ай бұрын
As per your query, In case of HR the male count will be shown as null, but should be shown as 0. So , we need to add otherwise(0) condition as well to get 0 count.
Sigma Girl Pizza #funny #memes #comedy
00:14
CRAZY GREAPA
Рет қаралды 2 МЛН
When you discover a family secret
00:59
im_siowei
Рет қаралды 35 МЛН
Master Databricks and Apache Spark Step by Step: Lesson 1 - Introduction
32:23
What does a Data Analyst actually do? (in 2024) Q&A
14:27
Tim Joo
Рет қаралды 55 М.
Databricks Unity Catalog: A Technical Overview
17:29
Pathfinder Analytics
Рет қаралды 25 М.
Sigma Girl Pizza #funny #memes #comedy
00:14
CRAZY GREAPA
Рет қаралды 2 МЛН