Python Pandas Aggregation Tutorial | How to use "groupby" in Pandas | Data Analysis with Pandas

Поделиться
HTML-код
  • Опубликовано: 19 ноя 2024

Комментарии • 37

  • @shreyashkhurud7217
    @shreyashkhurud7217 Год назад +1

    Best explaination found so far !
    Thank You sir!

  • @damoncaffrey4921
    @damoncaffrey4921 2 года назад +8

    Mean will also work in groupby's agg function if you put it under colons like this :
    df.groupby('category').agg({"sales" : "mean", "profit" : "max"})

  • @shaileshsingh1445
    @shaileshsingh1445 2 года назад +1

    crisp and clear !!!! please can you advise a roadmap to learn Python (any good online platform/course/book/GitHub )

  • @sravyasrinivas
    @sravyasrinivas 2 года назад +1

    This is super useful for data analysis. Waiting for this one for a long. Thank you so much

  • @hugodaniel8975
    @hugodaniel8975 2 года назад +1

    My dream is to become a data engineer but my sql skills are basically "from * import" 😢 gonne binge watch your channel

  • @AKAK-nn5gy
    @AKAK-nn5gy 7 месяцев назад

    Excellent. Easy to understand.

  • @vedprakashshukla404
    @vedprakashshukla404 2 года назад +1

    Really informative videos Sir Kindly make a playlist on Python like your SQL.

  • @hugodaniel8975
    @hugodaniel8975 2 года назад +1

    Wow didnt know those panda functions, thank you

  • @aashishmalhotra
    @aashishmalhotra 2 года назад +2

    We can find mean by importing Numpy and then use np.mean
    df.groupby('Team').agg({'Salary':np.mean,'Age':max})

    • @ankitbansal6
      @ankitbansal6  2 года назад +1

      Ok. If we give mean in quotes that also works

  • @harshitkak
    @harshitkak Год назад

    Pls make more vedios related to python

  • @SACHINKUMAR-px8kq
    @SACHINKUMAR-px8kq Год назад

    Thanks Sir For Sharing Such a great

  • @jojven7514
    @jojven7514 2 года назад +1

    Awesome👏👍👍

  • @chandramouliramakrishnan2810
    @chandramouliramakrishnan2810 4 месяца назад

    when u ran group by on 2 columns, category and city, for chennai city the category is blank displayed.. why ? time 4.36 on the video

  • @praveentanikella4078
    @praveentanikella4078 2 года назад

    Brother can do do completely EDA in python and same for SQL because am not getting concept right so it will useful for me

  • @nishitnishikant8548
    @nishitnishikant8548 Год назад

    Great 👍

  • @shashankemani1609
    @shashankemani1609 2 года назад

    Thank you for the tutorial!

  • @utkarshdixit3502
    @utkarshdixit3502 2 года назад

    Nice video 👏🏽

  • @FakeAmazon
    @FakeAmazon Год назад

    How to find the sum of Marks and Average of Age for the below data frame?
    data = {
    ‘Student’: [‘A’,’B’,’C’,’D’]
    'Age': [29, 36, 25,40],
    'Marks': [79, 56, 91,99]
    }
    df = pd.DataFrame(data)
    Can you provide answer for this

  • @ThePragyashree
    @ThePragyashree 2 года назад

    Thank you 💖🙏

  • @hugodaniel8975
    @hugodaniel8975 2 года назад +1

    Why do people always import pandas as pd? Why not as p or pan?

    • @ankitbansal6
      @ankitbansal6  2 года назад +1

      That's a general practice 😊

  • @sriramabonam6183
    @sriramabonam6183 Год назад

    Please share data set

  • @hugodaniel8975
    @hugodaniel8975 2 года назад

    Fortunately there is no mean 😢

    • @ankitbansal6
      @ankitbansal6  2 года назад +1

      There is, you have to give in single quotes 😃

    • @dhruviart413
      @dhruviart413 2 года назад

      @@ankitbansal6 ..Thank you for the videos . that's correct. Its work with single quotes..... df.groupby('category').agg({'sales':'mean','profit':'max'})

  • @vijaykumarboni4869
    @vijaykumarboni4869 2 года назад

    np.mean should work ig