Pandas Functions: Apply vs. Map vs. Applymap

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

КОМЕНТАРІ •

  • @misraturp
    @misraturp  2 роки тому +6

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

  • @hoow_j
    @hoow_j Рік тому +2

    The best explanation for novice!

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

    good to see you after a long time

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

      Haha yes, I took a big break :) Thank you.

  • @stanTrX
    @stanTrX 6 місяців тому +1

    Teşekkürler Mısra hanım

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

    Thanks!

  • @LuffyD-lv1lr
    @LuffyD-lv1lr Рік тому

    well explained thanks a lot even the paid resources i have didn't explain how the operations working behind the scene this is exactly what i needed

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

    thanks, your videos are very helpful for pandas/python/datascience

    • @misraturp
      @misraturp  2 роки тому +2

      Great to hear, thank you Kellen!

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

    Very good tutorial of the map, apply and applymap functions

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

    Simple yet very easy to understand...Thank you

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

    Definitly following this channel! this really helped with something im working at. Thanks

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

      That's amazing to hear, welcome to the channel Alejandro!

  • @giri41
    @giri41 6 місяців тому

    Super .. more videos please

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

    Thank you! I really appreciate your videos.

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

      You're very welcome Damien!

  • @a.5214
    @a.5214 2 роки тому

    amazing as always

  • @beloaded3736
    @beloaded3736 Рік тому

    Miss Turp, you are really a marvel, your knowledge is so deep and you are excellent teacher. Thanks for knowledge you are sharing so selflessly 🌹

  • @AhmedMostafa-so2jp
    @AhmedMostafa-so2jp 2 роки тому +2

    Is it possible for me to only use .apply( ) method because I think it can do pretty much everything?

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

    Thanks for the video!!!

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

      You're very welcome :)

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

    Thanks, that's very helpful👍

  • @AbdelrahmanMohamed-ic7sl
    @AbdelrahmanMohamed-ic7sl Рік тому

    I love your codes

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

    Keep it up 👍

  • @srikanthamigo
    @srikanthamigo 8 місяців тому

    Great Turp! really nice. Could u make a series on numpy

  • @KitAjoc
    @KitAjoc Рік тому

    thanks for lessons! this is great

  • @Virtualexist
    @Virtualexist Рік тому

    apply: 3:00
    applymap: 3:51
    map: 5:40

    • @misraturp
      @misraturp  Рік тому +1

      Thank you!

    • @Virtualexist
      @Virtualexist Рік тому

      @@misraturp Thanks to you ma'am for making to the point tutorials.

      🤌

  • @areal935
    @areal935 8 місяців тому

    for the first exemple why using pd.Series.str.capitalize woldnt work??

  • @aleman12345
    @aleman12345 Рік тому

    thanks for this!

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

    Nice class, your animation about topic are great

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

    First like, first view and first comment 👍

  • @elastvd7503
    @elastvd7503 Рік тому

    Thanks ❤

  • @pubgdoremongamer8823
    @pubgdoremongamer8823 Рік тому

    love your videos and you are so beautiful teacher 😍😍

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

    When I key in the code- a.applymap(function, na_action='ignore') I am getting this error - 'Series' object has no attribute 'applymap'

  • @himanshupandey9902
    @himanshupandey9902 2 роки тому +2

    Thanks so much. when you deal with data as a beginner. These pandas fuctions seem little tricky. You made them easier to understand. I learnt pandas in practice by your pandas playlist. If you can, I request to make some new videos of complete Eda with data cleaning , and then into a model deployment. Thanks again.

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

      You are very welcome Himanshu! And thank you for the suggestion, added to my ideas list!

  • @sachin-b8c4m
    @sachin-b8c4m Рік тому

    thank you

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

    Great Explanation . Consider me your fan for really making this simple .
    May I have a question please ?
    I have two dataframes (df1,df2) . df1 has two columns key,overide_value.
    df2 has key,region,calculated_value.
    in order to replace values in df2['calculated_value'] with df1['overide_value'] ; if key of df2 has matching value in key of df1 ? I dont want to use joins though .
    As per my understanding through your vedio . I believe , in order to use map , i will have to convert df1 into dictionary .
    Is that viable ?

  • @ammaralamin-z4l
    @ammaralamin-z4l Рік тому

    thanks

  • @ابوعبدالآلهالحربي-ص2ذ
    @ابوعبدالآلهالحربي-ص2ذ 10 місяців тому

    U are butifule teatcher❤ thank you

  • @stansuen8072
    @stansuen8072 Рік тому

    Thanks for a great video. If I want to create a new column by formula that takes in data from different rows, can we use apply? For example, I want to calculate the Rate of Change of stock price from say 5 days ago, how do I pass the value of the closing price of current row and of 5th previous rows? I know how to do it by looping / iterrows but just wonder if there is a faster way to do it by apply (or even vactor).

  • @osoriomatucurane9511
    @osoriomatucurane9511 Рік тому

    Awesome tutorial, the best by far on the matter. Mastering user defined functions is a great skill and it separates newbies from power users. I am aware that functions are always handy specially when you have a repetitive task where you could get he job done without hassles. I got the same result without apply(), just using data['Civil Service Title'].str.lower().str.capitalize(). Not sure if it always works. Could someone kindly explain me why and when is advised or recommended to opt for apply(), map(). I mean, is there any reason other than performance related where we should rely on apply ()and map() with in-built or user defined functions when applying a function or method to an object? Thank you in advance for the hint.

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

    When you used s.map({"cat":"kitten","dog":"puppy"}), it changed cat to kitten and dog to puppy but also changed rabbit to NAN is there a way to keep rabbit to rabbit without putting that in dictionary?

    • @misraturp
      @misraturp  Рік тому +1

      Not by using this option. You can achieve that by using conditional applys.

  • @caiyu538
    @caiyu538 Рік тому

    Great

  • @TGR_MAYANK
    @TGR_MAYANK Рік тому

    Thnks for providing this...
    i m from india by the way,
    can u make some videos on machine learning it would be helpful

  • @Day_Dream_Believer788
    @Day_Dream_Believer788 Рік тому

    You’re probably going to say no, but will you Mary me?

  • @zzye553
    @zzye553 5 місяців тому

    Wow I admired your accent If you are not married please tell me I want my kids to speak fluent english like this! Anyways great job