Pandas Functions: Three Ways to Use the Apply Function

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 ส.ค. 2024

ความคิดเห็น • 75

  • @misraturp
    @misraturp  2 ปีที่แล้ว +3

    👉 All you need to know about Pandas in one place!
    Download my Pandas Cheat Sheet (free)
    misraturp.gumroad.com/l/pandascs

  • @jahironmateoguzman5497
    @jahironmateoguzman5497 ปีที่แล้ว +1

    I've been learning many related stuff about data for the las year and as a personal challenge I decided to do it in english while my native languaje is Spanish, with you that's not a problem, your tone of voice and speed are just perfect as well everything you explain just fit into my mind right away. Looking foward to learn wit you about deep learning since I saw you have a playlist for that topic. I really like the way you transmit information in such as understandable way.

  • @marceloherdy2379
    @marceloherdy2379 ปีที่แล้ว +1

    I discovered your channel yesterday and I must confess that I am very impressed with your way of explaining. Congratulations on your work and thanks for the videos! 😉

    • @misraturp
      @misraturp  ปีที่แล้ว

      Thank you so much!

  • @jean-bernardsaint-eve3340
    @jean-bernardsaint-eve3340 2 ปีที่แล้ว +2

    Nice, you are back, thanks for this great video

    • @misraturp
      @misraturp  2 ปีที่แล้ว

      Yes, and there is more to come! :)

  • @mschuer100
    @mschuer100 2 หลายเดือนก่อน

    this video is great. Very simple explanation and easy to understand. Thanks

  • @danieldanielides
    @danieldanielides 2 ปีที่แล้ว

    I am participating in a Data Science Bootcamp at the moment. The material that you provide takes so much frustration off! Thanks a lot Misra.

    • @misraturp
      @misraturp  2 ปีที่แล้ว +1

      That's great to hear! Thanks Daniel! Good luck with the bootcamp. :)

  • @hayden9944
    @hayden9944 ปีที่แล้ว

    ah great! just started learning python and rite into pandas because i need it spacifically. You have explained this better then anyone else i have found. Also you are beautifal like Eva Mendes.

  • @humblesoul8685
    @humblesoul8685 ปีที่แล้ว

    Lovely! I'm learning python right as part of my data science degree, we just touched on pandas. Very informative videos. Very insightful content here!

  • @bubblebath2892
    @bubblebath2892 2 หลายเดือนก่อน

    Great video ...very simplified and easy to understand ...and look great

  • @ingluissantana
    @ingluissantana 2 ปีที่แล้ว

    Happy to see you back!!! Thanks a lot for this videoooo!!! 🙏🏼🙏🏼🙏🏼

    • @misraturp
      @misraturp  2 ปีที่แล้ว

      It’s good to be back at it :) you are very welcome!

  • @himanshupandey9902
    @himanshupandey9902 2 ปีที่แล้ว

    Thanks, you took a long leave from you tube. Your videos helped me. So thanks.

    • @misraturp
      @misraturp  2 ปีที่แล้ว

      Yes, I was on holiday for a while. :) That's great to hear Himanshu, you are very welcome. :)

  • @TimePasser
    @TimePasser ปีที่แล้ว

    Thank you very much.. I have been looking for this.. I have df which contains billions of raw data. I had to make formulas for calculations and KPIs. using apply helped alot in terms of processing time. I cant thank you enough.

    • @misraturp
      @misraturp  ปีที่แล้ว

      That's amazing to hear! You're very welcome :)

  • @tejasnaik4604
    @tejasnaik4604 ปีที่แล้ว

    Hi Misra, I have started learning pandas to work one of my project and your videos really helped me. You are a great educator! Best wishes :)

    • @misraturp
      @misraturp  ปีที่แล้ว

      Great to hear Tejas, thank you!

  • @frictionless
    @frictionless 3 หลายเดือนก่อน

    I love your videos. Keep up the good work! :)

  • @dakshbhatnagar
    @dakshbhatnagar 8 หลายเดือนก่อน

    The last bit was interesting 💯

  • @zhansayabauyrzhanova2492
    @zhansayabauyrzhanova2492 4 หลายเดือนก่อน

    Well explained, thanks ❤

  • @codingmyuniverse1029
    @codingmyuniverse1029 2 ปีที่แล้ว +3

    Great Content, Just Keep going.
    I have to learn a lot from you.

    • @misraturp
      @misraturp  2 ปีที่แล้ว +1

      Glad to hear that!

  • @sanjaygupta5636
    @sanjaygupta5636 ปีที่แล้ว

    Superb Explanation :)

  • @harishpoalampalli9637
    @harishpoalampalli9637 ปีที่แล้ว

    This is Cool Turp !! There is a space between attributes which is causing lot of issue while copying variables in script !! Great explaining with the data !! This helps 1!! cheers !!

  • @MrHjk1974
    @MrHjk1974 ปีที่แล้ว

    Great information Misra! Very helpful as I am starting to learn Pandas

    • @misraturp
      @misraturp  ปีที่แล้ว

      That's great to hear Hemant!

  • @demba1955
    @demba1955 ปีที่แล้ว

    Thanks a lot Misra that’s a really good content, well explained !

    • @misraturp
      @misraturp  ปีที่แล้ว

      You're welcome!

  • @aminul.islam.
    @aminul.islam. ปีที่แล้ว

    Now I've got it well!
    Thanks a lot Misra :)

    • @misraturp
      @misraturp  ปีที่แล้ว

      You're very welcome :)

  • @invictus327
    @invictus327 2 ปีที่แล้ว

    Thanks, Misra. Really useful. You are a great educator. 🙂

    • @misraturp
      @misraturp  2 ปีที่แล้ว

      Thank you! 😃

  • @tomrhee1
    @tomrhee1 5 หลายเดือนก่อน

    By the way, the output I would like to have is Intercept if we have the constant term in the regression, and all other regression regressions; R^2, and STEYX. Thanks in advance.

  • @VivekKBangaru
    @VivekKBangaru ปีที่แล้ว

    Awesome, I able understand fully. Thanks

  • @kennethstephani692
    @kennethstephani692 ปีที่แล้ว

    Great video!

  • @oguzhankaraca9982
    @oguzhankaraca9982 2 ปีที่แล้ว

    Thank you, great content.
    that’s an obvious and instructive explanation. For being more comprehensive, you could state apply, map and applymap functions at the same video next time.
    best wishes 🙂

    • @misraturp
      @misraturp  2 ปีที่แล้ว +1

      That is actually my next video. :) I'll upload it in a couple of days!

  • @GregThatcher
    @GregThatcher 3 หลายเดือนก่อน

    Thanks!

  • @a.5214
    @a.5214 2 ปีที่แล้ว

    I like this format, thank you! 🙂

    • @misraturp
      @misraturp  2 ปีที่แล้ว

      Glad you enjoy it!

  • @yucelled
    @yucelled 2 ปีที่แล้ว

    Thanks for the great content! Keep up the good work please🥰

    • @misraturp
      @misraturp  2 ปีที่แล้ว

      Thanks for watching!

  • @tomrhee1
    @tomrhee1 5 หลายเดือนก่อน

    I am wondering if you could help me with the "Rolling Multiple Regression" method with window size held constant. Not many people show this on TH-cam. Thank you in advance.

  • @mehdismaeili3743
    @mehdismaeili3743 2 ปีที่แล้ว

    Excellent, thanks.

    • @misraturp
      @misraturp  2 ปีที่แล้ว

      You are welcome!

  • @malo863
    @malo863 ปีที่แล้ว

    Nice job 👏

  • @bugito99wichit31
    @bugito99wichit31 2 ปีที่แล้ว

    great sharing..Thank you

    • @misraturp
      @misraturp  2 ปีที่แล้ว

      Thank you! Cheers!

  • @Sandunbalage
    @Sandunbalage ปีที่แล้ว

    Thanks

  • @munivoltarc
    @munivoltarc 7 หลายเดือนก่อน

    you are so gorgeous, and explaining subject so easily to all, wondaful work, keep it up, could you explain OHLCV data, apply, map functions, user defined functions to to find the trend on the High, Low columns, to get buy signals and sell signals by not using any price lagging indicators.

  • @aksrivastava455
    @aksrivastava455 ปีที่แล้ว

    Hello Misra, Thanks a ton for uploading this video. Please help if I have to update one column for eg. the salary column based on the condition on another column (here we can take posting type column). The condition is that for all those rows whose posting type is external, the salary column should be incremented by 2000 and for the rest salary should be incremented by 1000. How can this be done in pandas using the apply function.

  • @AVS771
    @AVS771 ปีที่แล้ว

    Hi Misra, thank you for the great explanation. How come you applied data[["salary Range From","Salary Range To']].apply(np.mean, axis=1) with double brackets and you got a series at minute 4:34. You said earlier double brackets will return a dataframe. And wasn't the case here

    • @misraturp
      @misraturp  ปีที่แล้ว

      Hello Avedis, it is because on the dataframe that is generated, I apply a numpy mean (np.mean) function. The result of this mean function is a series object.

    • @osoriomatucurane9511
      @osoriomatucurane9511 11 หลายเดือนก่อน

      @Misra, the point you made in the tutorial was to ilustrate the apply method over a dataframe object and at that point in time you used [[colname]] passing two numeric variables. This is no dought a dataframe object, over which you calculted the average using df.apply(mean).
      Type(df[[colname ]]) is a dataframe class/type

  • @ben10_prvn
    @ben10_prvn 11 หลายเดือนก่อน

    love you 🤫

  • @samahmedalone6573
    @samahmedalone6573 2 ปีที่แล้ว

    Thanks, 👍👍👍

    • @misraturp
      @misraturp  2 ปีที่แล้ว

      You're welcome!

  • @e.t.499
    @e.t.499 2 ปีที่แล้ว

    practical video

  • @mayurgangad7651
    @mayurgangad7651 ปีที่แล้ว

    Mam not received mail of cheatsheet 😑

  • @sidd_2906
    @sidd_2906 2 ปีที่แล้ว

    Def common_word(row):
    ...........
    df['word_c'] =df.apply(common_word, axis =1)
    It's not creating a new column
    Error----> AttributeError : 'float' object has no attribute 'split'

    • @sidd_2906
      @sidd_2906 2 ปีที่แล้ว

      Can you creat a function and use that function as a new column that will going to help me

  • @sidd_2906
    @sidd_2906 2 ปีที่แล้ว

    df['q1_num_words'] = df['question1'].apply(lambda row: len(row.split(" ")))
    im getting error -----> AttributeError: 'float' object has no attribute 'split'
    pls help me out

    • @misraturp
      @misraturp  2 ปีที่แล้ว

      seems like the row you're calling is a float and not a string.

    • @sidd_2906
      @sidd_2906 2 ปีที่แล้ว

      @@misraturp no it's totally a string , actually I solving ml problem quora question pair similarity
      But when I check it showing me ---> Object type
      So what should I do

  • @DiscoveringWithVanah
    @DiscoveringWithVanah 26 วันที่ผ่านมา

    I am sorry but "axis = 0" refers to rows while "axis = 1" refers to columns

  • @alexandregouveac
    @alexandregouveac ปีที่แล้ว

    Thank you. Really, thank you. From brazil

    • @misraturp
      @misraturp  ปีที่แล้ว

      You are welcome!