Python Pandas Tutorial: Pandas Apply Function and Vectorization #15

Поділитися
Вставка
  • Опубліковано 7 лис 2024

КОМЕНТАРІ • 8

  • @ProgrammingIsFunn
    @ProgrammingIsFunn  7 місяців тому

    Dataset : github.com/AbhisheakSaraswat/RawData

  • @alkeshkumar2227
    @alkeshkumar2227 3 роки тому +3

    Sir when we passes calcSales fun in lambda expression what is x[total sale amount] and how it x is referring to df column at 6:47

    • @ProgrammingIsFunn
      @ProgrammingIsFunn  3 роки тому +2

      Hi Aklesh, using the lambda function we are applying the calcSales function on dataframe right, so x is lambda variable by which we are accessing the dataframe columns "Total Sale Amount". for more info watch lambda tutorial it will help you.
      ua-cam.com/video/faVjlTxaR4U/v-deo.html

    • @alkeshkumar2227
      @alkeshkumar2227 3 роки тому +1

      @@ProgrammingIsFunn thank u sir ,comment is self explaining !!

  • @EnglishwithAlok-aj5
    @EnglishwithAlok-aj5 2 роки тому

    Hi Sir I am beginner in python programming can you guide me where I will start from. Sir if you provide a class please let me know.

    • @ProgrammingIsFunn
      @ProgrammingIsFunn  2 роки тому +1

      Follow this playlist for Python from very beginner
      ua-cam.com/play/PLWuFHho1zKhWb-f-SJAMUCK--f8PJlG46.html

  • @tobedeleted2030
    @tobedeleted2030 2 роки тому

    3:10 doesn't make sense, so are you getting the max price for that customer or overall? wouldnt max(df.Quantity) give you the max quantity of the entire DataFrame, not just for this customer? .. why was only 1 customer record shown for Willie Oliver, I don't understand that part?
    wouldnt df.loc[:,"Customer","Total Sales Amount"].apply(max,axis=rows) give all records and the max values for each record ? , a bit confused

    • @ProgrammingIsFunn
      @ProgrammingIsFunn  2 роки тому

      Hi tobedeleted, here we are getting the max price for overall customer in DataFrame. So, we will have only single customer against the max quantity and sales.