stratascratch | google | deloitte interview questions and answers |Election Results | pyspark

preview_player
Показать описание
stratascratch | google | deloitte interview questions and answers |Election Results | pyspark

In this video we will be solving GOOGLE , DELOITTE coding question using PYSPARK

SQL Version of this problem :
===========================

PANDAS Version of this problem :
============================

#datascience #data #database #dataanalytics #dataengineers #datascientist #interview #interviewquetions #interviewquestionsforfreshers #SQLInterview #CodingInterview
#DataEngineeringInterview
#SQLProblems
#TechInterview
#SQLCoding
#SQLQuery
#DatabaseInterview
#DataScienceInterview
#SQLSkills
#CodeChallenge
#SQLPractice
#InterviewPrep
#TechRecruitment
#pyspark
#spark
#bigdata
#pandas
#python
Рекомендации по теме
Комментарии
Автор

Solution works for the given data set but I think is not generic enough.
1. There is a possibility of tie - we should use dense_rank function
2. In the case when we have majority of voters that didn't vote at all - NULL candidate would be declared as a winner - we should first filter out these voters.

vlastimirmasic