Course Hive
Search

Welcome

Sign in or create your account

Continue with Google
or
How do I avoid a SettingWithCopyWarning in pandas?
Play lesson

Data analysis in Python with pandas - How do I avoid a SettingWithCopyWarning in pandas?

5.0 (3)
29 learners

What you'll learn

This course includes

  • 11.5 hours of video
  • Certificate of completion
  • Access on mobile and TV

Summary

Keywords

Full Transcript

If you've been using pandas for a while, you've likely encountered a SettingWithCopyWarning. The proper response is to modify your code appropriately, not to turn off the warning! In this video, I'll show you two common scenarios in which this warning arises, explain why it's occurring, and then demonstrate how to address it. SUBSCRIBE to learn data science with Python: https://www.youtube.com/dataschool?sub_confirmation=1 JOIN the "Data School Insiders" community and receive exclusive rewards: https://www.patreon.com/dataschool == RESOURCES == GitHub repository for the series: https://github.com/justmarkham/pandas-videos "copy" documentation: http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.copy.html "loc" documentation: http://pandas.pydata.org/pandas-docs/stable/generated/pandas.DataFrame.loc.html Longer explanation of SettingWithCopyWarning: http://tomaugspurger.github.io/modern-1.html Returning a view versus a copy: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy == LET'S CONNECT! == Newsletter: https://www.dataschool.io/subscribe/ Twitter: https://twitter.com/justmarkham Facebook: https://www.facebook.com/DataScienceSchool/ LinkedIn: https://www.linkedin.com/in/justmarkham/

Course Hive

Continue this lesson in the app

Install CourseHive on Android or iOS to keep learning while you move.

Related Courses

FAQs

Course Hive
Download CourseHive
Keep learning anywhere