Pivot in Spark DataFrame | Spark Interview Question | Scenario Based | Spark SQL | LearntoSpark

preview_player
Показать описание
In this video, we will learn how to apply pivot function to transpose a column in to row on top of Apache Spark Dataframe using PySpark. Hope this video will be useful for your preparation on Spark Interview.

Blog link to learn more on Spark:

Linkedin profile:

FB page:

Github:
Рекомендации по теме
Комментарии
Автор

HI Azarudeen,
great

i have one doubt why to use max function...?

bunnyvlogs
Автор

Good Explanation brother. Keep posting useful stuff :)

varunhadoop
Автор

How can I reach u .. you seem like a pro

giri
Автор

Hi Azarudden, Can you please how to do the reverse of this - Transposing Column data to row wise

goudarakesh
Автор

Hi Azarudeen, what if we take event in place of roll-no and event will have single repeated value. for one event there will be two ENGLIS, PHYSICS, MATH, SCIENCE and HISTORY rows.. then how to do it..

AAMIRKHANitsaamir
Автор

Good explanation and it is very useful in real time scenario's. Please make the video in scala too. And so it is helpful for whoever working with spark with scala. Thank you !!

ramg
Автор

How to do reverse for it with two more numbers

Like subject one column
Marks 1st year marks one column
2nd year marks one column
Same subjects
For understanding I said same example

Actually I will use sales and profit in two columns
And category one column
Here category =subject

PTmedia
Автор

Hi bro, i want one different between case class and normal class

ultimo
Автор

Can you create a dynamic function to transpose data and take input as dataframe

shivprasadgadekar
Автор

Could you show an example for unpivot as well?

rohithreddysureddy
Автор

Can u explain end to end spark project in real time scenario's

rajasekhar
Автор

Hi Azar
Can you please have a video on generating header and trailer record using spark scala or python

Cnupodala
Автор

is there a way you can avoid hard-coding the subject-names for the final sum ?

thesadanand
Автор

when you are demonstrating a working code be sure your code is dynamic and not hard-coded column names. Overall it was good.

skc