25 Nooby Pandas Coding Mistakes You Should NEVER make.

Поділитися
Вставка
  • Опубліковано 6 вер 2022
  • In this video I go over my list of 25 mistakes commonly made my beginners learning pandas in python. Pandas is a great tool, but there are some pitfalls to avoid!
    Shoutout to mCoding who inpired the idea for this video! / mcodingwithjamesmurphy
    Follow me on twitch for live coding streams: / medallionstallion_
    My other videos:
    Speed Up Your Pandas Code: • Make Your Pandas Code ...
    Intro to Pandas video: • A Gentle Introduction ...
    Exploratory Data Analysis Video: • Exploratory Data Analy...
    Working with Audio data in Python: • Audio Data Processing ...
    Efficient Pandas Dataframes: • Speed Up Your Pandas D...
    * UA-cam: youtube.com/@robmulla?sub_con...
    * Discord: / discord
    * Twitch: / medallionstallion_
    * Twitter: / rob_mulla
    * Kaggle: www.kaggle.com/robikscube
    #python #pandas #datascience

КОМЕНТАРІ • 504

  • @viewsfromthechris7810
    @viewsfromthechris7810 Рік тому +96

    I need to implement the chaining methods and using functions into what I do, much easier to use and read. Great video as always.

    • @robmulla
      @robmulla  Рік тому +3

      Totally. Just those two things alone are huge! Glad you enjoyed the video.

  • @texloch1401
    @texloch1401 Рік тому +216

    Usually these videos address REALLY nooby mistakes that any general programmer already avoids. THIS video however ACTUALLY addresses library FUNCTIONALITY and discusses the tools that a programmer may be unaware of to increase readability and efficiency. Rob, my good sir, you just earned a sub.

    • @robmulla
      @robmulla  Рік тому +6

      So happy to have you as a sub. Even happier to read such a kind comment. Looking forward to more videos like this in the future.

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

      I couldn't have said that better myself. I am self taught and definitely learned new tricks here. You have also earned my sub!

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

      Same! I had no idea many of these even existed!!

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

      @@robmulla I am a fairly experienced programmer, not so much with Python, but I have a few things I might want to use Pandas for at some point and this has given me a bit of a taste for features that I look forward to trying.

  • @akmalmir8531
    @akmalmir8531 Рік тому +314

    00:18 #1. Writing into csv with unnecessary index
    00:53 #2. Using column names which include spaces
    01:25 #3. Filter dataset like a PRO with QUERY method
    01:44 #4. query strings with(@ symbol) to easily reach variables
    02:07 #5. "inplace" method could be removed in future versions, better explicitly overwrite modifications
    02:35 #6. better Vectorization instead of iteration
    03:01 #7. Vectorization method are preferable than Apply method
    03:30 #8. df.copy() method
    04:08 #9. chaining formulas is better than creating many intermediate dataframes
    04:28 #10. properly set column dtypes
    05:01 #11. using Boolean instead of Strings
    05:25 #12. pandas plot method instead of matplotlib import
    05:45 #13. pandas str.upper() instead apply and etc
    06:10 #14. use data pipeline once instead of repeating many times
    06:41 #15. learn proper way of renaming columns
    06:59 #16. learn proper way of grouping values
    07:31 #17. proper way of complex grouping values
    08:01 #18. percent_change or difference now could be implemend with function
    08:25 #19. save time and space with large datasets with pickle,parquet,feather formats
    08:58 #20. conditional format in pandas(like in Microsoft Excel)
    09:22 #21. use suffixes while merging TWO dataframes
    09:48 #22. check merging is success with validation
    10:13 #23. wrapping expression so they are readable
    10:33 #24. categorical datatypes use less space
    10:55 #25. duplicating columns after concatenating, code snippet

    • @robmulla
      @robmulla  Рік тому +10

      Thanks for making this!

    • @akmalmir8531
      @akmalmir8531 Рік тому +6

      @@robmulla i wish i commented better as English is not my native language, Thank You for bringing us Valuable Tutorials that saves us our time and energy! I wish i helped and learned from you more

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

      egg bro

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

      thanks, I like no 4

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

      This needs to be pinned

  • @vishnurj6207
    @vishnurj6207 Рік тому +42

    Please keep doing this. No additional jargon, crisp, straight to the point explanations are what are required. No body needs a 10 hour tutorial. Thank you for this.

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

      I'll try my best! I do like trying to cram a ton of information into a short format, but these videos take a while to create. I totally copied the format from mmcoding (check out the channel if you haven't already)

  • @jelmermulder7276
    @jelmermulder7276 Рік тому +94

    I thought I was pretty good in Pandas, but you gave me so many new things to improve. HUGE thank you!

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

      Glad I could help! I'm constantly learning better ways to do things in pandas myself.

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

      I was thinking that I was pretty bad, but surprisingly I usually only make 2 mistakes from the video (which is a cool chance to improve). I just love such videos because not only they help to improve your skills, but also to be realistic about your expectations and ambitions. Thanks for the video, Rob!

  • @joaomurilopalonefauvel2843
    @joaomurilopalonefauvel2843 Рік тому +77

    Matt Harrison's "Effective Pandas: Patterns for Data Manipulation" is one of the best resources I've read on idiomatic pandas.

    • @robmulla
      @robmulla  Рік тому +6

      I really need to get myself a copy! He knows his stuff for sure.

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

      He has a great video (series?) on effective pandas also!

    • @lordvoldemort1985
      @lordvoldemort1985 15 днів тому

      ty i will look into this book

  • @DeadLine171
    @DeadLine171 Рік тому +18

    I have been working 2 years now with pandas and I can strongly affirm that I have made like 70% of those bad practices, appreciate a lot your video!

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

      Thanks for commenting. Honestly I still make many of them to this day.

  • @singsinghai1505
    @singsinghai1505 Рік тому +5

    The pandas query function does not outperform the loc method. In fact, it is sometimes much slower when your query/data is so big. We industry users will utilize the loc method for quick EDA. Query might be useful when you have a scheduled cron

    • @robmulla
      @robmulla  Рік тому +3

      Yea. Query isn’t for speed of processing but speed of writing the code.

  • @kaymaqsood8920
    @kaymaqsood8920 5 місяців тому +1

    Rob, thank you for all the time and energy you have put in for us. Would appreciate an updated video on "Exploratory Data Analysis" may be expanding on your year old one. Thank you again!

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

    This can be, some of my first times commenting in youtube after years of usage. This video was INCREDIBLY USEFUL! There's a lot of my previous team members did on scripts and sometimes are complicated to maintain or create new ones following the same logic. This covers exactly what they used and what is the best option to rewrite it and make it more understandable.
    Thank you so much for this godly information.

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

      You're very welcome! I really appreciate the positive feedback. I’ll try to keep making helpful videos like this. Share with your friends in the meantime!

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

    I started to watch your videos recently, and from now on I'm doing the chaining and putting each function in "one row" to make the data cleaner, and also, the query method, so powerful and simple, I was used to replicate the dataframe with the column and value searched to filter my df. You are boosting my studies!
    Thanks for that!

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

    I can't believe how good this video is. I love your no-nonsense delivery; I don't have time at work to watch a 4-hour "intro" video. Keep it up!

  • @NERGYStudios
    @NERGYStudios 9 місяців тому

    Learned more about Pandas in this video than a whole many videos worth hours combined. Seriously, thank you.

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

    Rob, as always, fantastic video. I have to admit, i get caught on some of those mistakes so it is great to have you point out and make suggestions on how to correct them. Thanks for sharing. Much appreciated.

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

      I fall into these a lot too! We can all get better, glad you found the video helpful.

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

    oh wow the quality and clarity is worth subscribing! thank you !

  • @ladiesperfume
    @ladiesperfume Рік тому +7

    Wow dude! You are single handedly responsible for my data science growth. PLEASE keep making more of these videos I really appreciate it.

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

      Wow! I love hearing feedback like this. I'll keep making videos if you all keep watching! :D

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

    Rob, amazing video and intuitive. Happy to subscribe!

  • @SuperOMERH
    @SuperOMERH 2 місяці тому

    This video is amazing, I am using pandas for a long time now and still learned so many new good practices thank you

  • @iReaperYo
    @iReaperYo 11 місяців тому +2

    One of the best videos I've seen on Pandas! So glad someone prominent enough is advocating for method chaining and pandas methods!

    • @iReaperYo
      @iReaperYo 11 місяців тому +1

      The 'Query' method in particular is relatively unknown. In conjunction with not using 'snake case' this leads to beginners being very inefficient at code due to not being able to use dot syntax
      I am just an intermediate level so I can relate to many of these mistakes. It goes as deep as university however. They do not teach clean, efficient code at all!

    • @robmulla
      @robmulla  11 місяців тому +1

      Glad you enjoyed it! I confess I don't use chaining nearly as much as I should.

  • @ryantakers
    @ryantakers Рік тому +28

    I'm currently working on my first major pandas project and I reckon that I may have done around 15/25 of these 'mistakes'. Looks like I have some optimisation to do over the coming days!

    • @robmulla
      @robmulla  Рік тому +4

      We all have to start somewhere. I didn't learn many of these until I had been using pandas for years.

  • @DataCraftsman
    @DataCraftsman Рік тому +18

    I feel personally attacked. Thanks so much for releasing this. I knew my code was bad, but not THIS bad.

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

      Haha. With coding we all are learning and getting better every day. Me included. Thanks for watching!

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

      These are fantastic refactoring suggestions.

  • @TravisGore-ep4yk
    @TravisGore-ep4yk 8 місяців тому

    I can't believe I watched this whole video and only 2 of them were things I didn't know about! Thank you for sharing!

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

    Awesome stuff. I've been using pandas for over 4 years, but it never occurred me to start using the query method instead of loc (despite me finding it tiresome to keep repeating "df" all over the place when using loc).
    I also appreciate the quick format. You see UA-camrs taking too long to say nothing at all, so congrats on actually going through 25 tips in 10 minutes. You got yourself a sub!

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

      Simple Application Enter your details
      ua-cam.com/video/DWn5-Ej8R-M/v-deo.html

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

    This was great! Just what I needed :)

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

    Great video. Thank you for being so direct and giving us valuable tips ☺

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

      Glad you liked it! Thanks for giving feedback. Share the video with anyone else you think might also like it.

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

    This is awesome, I’ve been wanting to know what are the better ways to write my code and why. Please continue to make these videos.

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

      Wow! Thanks so much Emily. Really apprecaite the feedback and super thanks!

  • @joomzb
    @joomzb Рік тому +3

    Thanks, great tips! I've been using pandas for years, and I've only recently started using some of these (particularly query, and didn't know about the @ operator)

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

      Glad it was helpful! The @ operator is really useful. You can also do stuff like min() or or apply operations between columns within the query.

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

    Another awesome, useful video, Rob. Thank you.

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

      Thanks for watching Deepak!

  • @philwebb59
    @philwebb59 Рік тому +13

    1:28 Before I discovered your videos, I'd never considered using the query method. The examples I've previously seen online made it look like a me-too add-on for seasoned SQL users. Using conditionals to mask off rows seemed just as easy and more pythonic. Also, at work, I typically filter with a script when I pull down the data, so by the time I get the data into pandas, I just need to tweak. But, you've shown me the light. Thanks!

    • @robmulla
      @robmulla  Рік тому +3

      I totally understand where you are coming from. Its important to keep in mind query can be slower, but for quick filtering it can be really quick and clean way to filter data. It really depends on what I'm doing. Glad I showed you something new though!

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

    Very useful! Thank you for sharing in such an easy and agile way.

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

      Hey! Glad you learned something. Appreciate the feedback!

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

    Excellent points! Learned new stuff that a lot of tutorials don't explicitly teach.

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

      Glad it was helpful! Thanks for watching and please share with others.

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

    Hey, Rob! Super video this one. I myself am Sr. DS working each day intensively with pandas, I will implement many of the tips you show! Thanks a million :)

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

      Awesome to hear! I'm still learning new tricks with pandas every day.

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

    Great video. Very helpful. Please keep making more like this

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

      Appreciate that. I plan to!

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

    I used the Pandas lib more then 2 years, but today I learned something new! Thank you, man!

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

      Glad you learned something new! Share with anyone else you think might appreciate it!

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

    I didn't know about suffixes. Amazing!

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

      Thanks Ken, glad I you were able to learn something new! Love your videos.

  • @JakeStetter-wo6jr
    @JakeStetter-wo6jr Місяць тому

    Really enjoyed how fast this content came. I felt like it was a great speed to keep me engaged. I usually find these types of videos boring.

  • @Dongnanjie
    @Dongnanjie 4 місяці тому

    Love it. Thank you!

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

    This video made me realize i have still a long road ahead in Pandas. Thanks! Just subscribed ;D

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

      Thanks for the sub! We all start somewhere, but you'll pick it up quickly in no time.

  • @opendeltatech
    @opendeltatech 9 місяців тому

    Thank you. This video was helpful.

  • @haskellbear
    @haskellbear Місяць тому

    I'm an experienced developer looking to get familiar with Pandas. I found this video very valuable.

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

    found your channels few days ago and man you have some epic content . The noob mistakes here are the exact way most tutorials teach you..just wondering why the hell the non noob ways are not taught as they are easier and shorter and the syntax makes more sense... thank you for this video

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

      Glad you like them! I’m trying to continue to make more stuff like this so keep watching!

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

    Very useful video, thank you for making this !

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

      Glad it was helpful! Share it with anyone you think might also benefit.

  • @swannschilling474
    @swannschilling474 Місяць тому

    Thanks for this great tutorial!!

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

    Great insights, thanks for these important tips

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

      Glad you found them helpful. Share it somewhere on social you think people might learn from!

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

    lots of good info! thank you!

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

      Glad you learned from it!

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

    Super useful! Thanks a lot, mate!

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

      Thanks for watching. Please share with someone you think might also like it.

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

    This video rocked me. I've been using python for a few months and watching this video made me bust out my laptop so I could try all of these items out. Thank you for this.

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

      So glad you found it helpful. Share with a friend!

  • @user-vv2yz2ht4l
    @user-vv2yz2ht4l Рік тому +2

    The space need to be avoid part is so true! But wait a second, every time I face the space but not underscore is from others data, so I think what we actually need is how to deal with the space condition.(Which is a pain of journey)

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

      Maybe rename all the columns with versions without a space. Like, you replace all the spaces with an underscore. df.rename can take dictionaries or even a mapper function so this is easy to do. Using a dictionary is preferable as you can just reverse map it, if you want to use the columns with spaces in them in the end.

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

      Good point. In most cases to can be done with a list comprehension one liner!

  • @smiley-wu1kn
    @smiley-wu1kn Рік тому +1

    This is amazing! Thanks a lot.

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

    Learned tons with this. Short and succinct. New subscriber.

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

      Thanks for subscribing!

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

    I'm new to Pandas and all tips from this video are gold for me, thank you a lot!

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

      Glad you learned something new. Welcome to the world of pandas!

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

      +1000. I’m brand new to Pandas and still trying to grok the idiom. This video is GOLD.

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

    Great video as always. I will start exploring query method more.
    Rob, Can you please make a video on how feature engineering, especially how to create new features using aggregation etc. Thank you

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

      Glad you enjoyed the video. Feature engineering would be a good topic for a future video. I'll add it to the list!

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

    Oh man, that guide is pro! Thanks, gonna apply all of that when refactoring my project!

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

      Glad it helped! Tell a friend!

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

    Very illuminating video! I learned a lot quickly.

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

      Thanks for the feedback Daniel!

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

    I loved this to s be to my students. You did a great job in a short video!

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

      Thank you so much! It's hard to make it short but is worth it in the end.

  • @stellathron1079
    @stellathron1079 8 місяців тому +1

    Thank you for creating such an amazing video on pandas. It has even been really helpful for me as a pandas new bee. Leanrt a lot! 🎉

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

    Awesome video! I work with Pandas for +3 years and learned a lot here! Thanks

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

      Happy to hear it. Tell your friends!

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

    Oh god. I clicked on this video just to confirm that this is one more overly exaggerated self-confident dude trying to teach newbies of 2 weeks experience.
    After watching this, this is god damn life changing. As an engineer focusing on fluid dynamics and floater response, I use pandas daily basis. Out of 25, I didn’t know approximately 20. Every single person who has any plan to use pandas must watch this.
    Awesome!

  • @piotrkulinski922
    @piotrkulinski922 9 днів тому

    OMG! I had to rest after first 10. So huge dose of information. Thanks.

  • @scottbrewer474
    @scottbrewer474 Рік тому +6

    Found lots of favorite annoyances and learned a few new tricks! I'll add a shout-out to the ".pipe()" method to allow for wrapping all your transforms in a single statement when a single .method can't cover the required transform. An added bonus of "pipe()" - since it's using user defined functions to do the transforms, you can add decorators to automatically print out metadata on the resulting transform steps to get a quick insight into potential bugs.

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

      Oh. Great one. I forgot to add pipe and assign in this video but wish I did.

  • @juan.o.p.
    @juan.o.p. Рік тому +1

    This is really useful, thank you!

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

      Glad you found it useful, Juan!

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

    Great video. Lots of operations and procedures that are helpful for effective coding. Would be really helpful to have a cheat sheet linked for easy reference.

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

    some great tips here. i usually chain with \ and i didn't know a query method exists!!
    guess you learn everything new all the time!

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

      Glad you learned something new! Cheers.

  • @tharun541
    @tharun541 Рік тому +3

    Hi, I love your videos!!!
    Can you please make a video on how to handle missing values and outliers?

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

      Great suggestion! I did have a whole video on this topic on Abhishek Thakur's channel. Check it out here: ua-cam.com/video/EYySNJU8qR0/v-deo.html

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

    Amazing Tips, Many thanks.

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

    Dude, Amazing video apparently clear the concept.

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

      Glad you think so! Share with your friends!

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

    Nice video! I have been using pandas for years and still run into these issues :)

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

      Thanks! Glad you enjoyed the video. I really enjoy your videos too.

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

    Great video, thank you!!

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

      Glad you liked it! Share witha friend!

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

    Great tips!

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

    Thank you! The .diff method is a lifesaver when computing velocities. The advice on not using inplace is excellent i got into various troubles because of it but i thought that's what the "experienced guys" do.

    • @robmulla
      @robmulla  Рік тому +3

      Thanks for watching. inplace is very tricky. Diff method is really powerful, and there are parameters you can use within it depending on your use case.

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

    Really helpful tips, thanks for video

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

    did you ever tried to use np.vectorize function to apply transformations over a df column? that one is along with my favorites.
    amazing video btw, subscribed!

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

      Yes! I've used it before and had some good results. Thanks for watching!

  • @amams_kaiser
    @amams_kaiser 9 місяців тому

    Thank you. Legend

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

    Dude I've worked with pandas for 7 years and learned some new tricks, thanks a lot!

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

      Great to hear! You've been working with it longer than I have. Please share my channel with any friends you think might also learn from it.

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

    Thanks, really helpful

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

    Great video! I also like the jazz bass behind you, I also play bass :)

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

      Awesome! I’m more of a guitar player but I also enjoy playing bass.

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

    Dear Rob,
    I'm a total beginner in Python and Pandas. From what I understand, the warning at 3:30 is not about making a copy of sliced data, but rather about not using the .loc method and using "direct assignment" for columns (or whatever it's called). I could be wrong, but this is what I've gathered from reading the documentation and encountering a similar warning in my code.
    Thanks for your valuable content. It has been a great help

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

    Hey Rob, great video as usual. Can you tell me why using inplace = True is a bad idea? In R I often use the compound pipe operator %% from the magrittr package which is effectively the same as Pandas' inplace parameter. Is there a reason I shouldn't be doing this?

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

      Hey Jared. Great question. Check out this article.. towardsdatascience.com/why-you-should-probably-never-use-pandas-inplace-true-9f9f211849e4

  • @protohale
    @protohale Рік тому +3

    I'm so guilty of number 8! Thank you for this!

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

      I’ve made every one of these mistakes at some point so I know how you feel. Thanks for watching!

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

    Extremely underrated channel Extremely helpful

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

    Wow, very useful - a true "tour de force" for better Pandas code. THX for this !

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

      Glad it was helpful! Please consider sharing it with anyone else you think would benefit from watching.

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

    Thanks, lots of good info.

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

    Oi! There were several of those I didn't know. I wouldn't have thought I was a noob, but I guess we all have a bit of that in us. Thanks for the video!

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

      Glad you learned something new. I find I’m always learning something new with python and data science. That’s why I love it so much.

  • @Lewstars
    @Lewstars Рік тому +8

    I really think this should be written up in a medium blog article. Would be awesome to refer to.

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

      That’s a good idea. I really want to make blogs for all my videos but I don’t have the time. Maybe someday

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

    I was genuinely worried I was making noob mistakes in Pandas...

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

      😂 Hey Alex! Now I'm dying to know... did you have any reason to be worried?

  •  Рік тому +1

    At 6:23 (#14) you're returning the dataframe, but you're also modifying it in place. Having a return there gives the impression that the original dataframe isn't modified, specially if you also assign it to itself later.
    It ties back to #5.

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

    I didn't know about the .query neither the parenthesis for the chaining. Awesome video
    What is it with the \ on a chaining example you showed?

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

      Thanks! Glad it helped. \ let’s you split lines for the same code.

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

    So good. Glad I subscribed.

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

    Awesome content, I'm an aspiring data scientist, very useful content. Like your jupyter note theme by the way, which one is it?

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

      Thanks. I have a whole video on my jupyter setup. But it’s jupyterlab with the solarized dark theme.

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

    Great vid thanks!

  • @MariaSaleem-gi4uj
    @MariaSaleem-gi4uj 2 місяці тому

    As a beginner this video made me learn some basic concept about pandas. thanks

  • @04mdsimps
    @04mdsimps Рік тому +1

    Great video. Subscribed

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

    the last 5 were cool! thank you

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

      Glad you found them helpful.

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

    Good Work!

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

    So good. Thank you.

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

    Very helpful !

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

      Glad you found it helpful.

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

    Wonderful, this video is super helpful

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

      Glad you think so!

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

      @@robmulla videos like these actually helps a data scientist’s sword to be sharper.
      Thank you for sharing it, hope to look for more advanced videos like these in future.

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

    wow this was very helpful thanks!

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

    Great video!!!

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

    This is excellent thanks