Pivot or Transpose Multiple Columns using Python

preview_player
Показать описание
This video provides a step by step walk through on how to pivot one or more columns to rows using the pandas libraries available in Python. When you need to make your large columnar table tall and skinny versus long and wide.
Рекомендации по теме
Комментарии
Автор

Words cannot express my gratitude... have been struggling with this for days

lewi
Автор

simple, straightforward, concrete and brief, super useful, Thank you!

ilabdata
Автор

Many many many thanks... Was trying to do this with for loop and it was taking a lot of time... This really saved my life... Thank you once again ❤

harishbagran
Автор

Gracias vídeos así directo al punto y con casos que se hacen en excel fácil hacerlo también sin tanto código directo al asunto . Gracias

LuisLopez-scqc
Автор

love it. just find the solution for my problem. thanks for sharing man. i'd really appreciate it.

jurnalurang
Автор

Thank you, i was looking exactly for this!

iliantroncoso
Автор

I want the reverse solution .. multiple avatar to single row avatar and actor names in columns .. please help me

Ramireddyumamahesh
Автор

Hi
I have data same like last dataframe.
I want to transform 2nd column into ro headers.
Could you help me out

prakashgadupoodi
Автор

Excelent video!
But if I don't want the column "actor_1, actor_2 ..." I will need to drop it or can I make it in that line of code??

Druzian
Автор

Amazing. you made it my day very simple and easy. thank you .
Need python scrip for validating date format dynamically

I have one use case like user send daily one excel agreed like MMM-YY, MMM-YYY or DD/MM/YY or DD/MM/YYYY in date column in xl file. they use any date format at a time

I want check date pattern dynamically in DATE column the get output as YYYY-MM-DD . not sure which date user will send in excel.


if my date is coming MMM-YY, MMM-YYY then last day of the month
else other format then YYYY-MM-DD

example if Jun-21 or 06-2021 then 2021-06-30
else 13/06/21 then 2021-06-13

pls help me

kottakaburlu