The Real Python Podcast

Python Regular Expressions, Views vs Copies in Pandas, and More


Listen Later

Have you wanted to learn Regular Expressions in Python, but don’t know where to start? Have you stumbled into the dreaded pink SettingWithCopyWarning in Pandas? This week on the show, we have David Amos from the Real Python team to discuss a recent two-part series on Regex in Python. We also talk about another recent article on the site about views vs copies in Pandas. David also brings a few other articles and projects from the wider Python community for us to discuss.

David searches for the latest Python news, links, and articles to produce PyCoder’s Weekly with Dan Bader. PyCoder’s Weekly is a free email newsletter for those interested in Python development. Along with the previously mentioned Real Python articles, we also discuss articles from the community about:

getting machine learning to production, combining Flask and Vue, space science with Python, and the fastest way to flatten a list in Python.

Course Spotlight: Reading and Writing Files in Python

This course will get you up to speed with reading and writing files in Python. You’ll cover everything from what a file is made up of, to which libraries can help you along that way. You’ll also take a look at some basic scenarios of file usage as well as some advanced techniques.

Topics:

  • 00:00:00 – Introduction
  • 00:01:40 – SettingWithCopyWarning in Pandas
  • 00:06:17 – Fastest Way to Flaten a List in Python
  • 00:12:12 – Combining Flask and Vue
  • 00:15:33 – Regular Expressions in Python
  • 00:23:08 – Video Course Spotlight
  • 00:24:00 – Space Science With Python
  • 00:30:13 – Getting Machine Learning to Production
  • 00:37:15 – genetic-drawing
  • 00:39:42 – MicroscoPy
  • 00:43:55 – Thanks and Goodbye
  • Show Links:

    SettingWithCopyWarning in Pandas: Views vs Copies – In this tutorial, you’ll learn about views and copies in NumPy and Pandas. You’ll see why the SettingWithCopyWarning occurs in Pandas and how to properly write code that avoids it.

    Fastest Way to Flatten a List in Python – Explore six different was to flatten a list of lists in Python and how their performance compares. The fastest of the six methods mentioned might surprise you!

    Combining Flask and Vue – Learn about three ways to combine Flask and Vue, the pros and cons of each, and some guidelines for when to use each method.

    Regular Expressions: Regexes in Python (Part 2) – In the previous tutorial in this series, you learned how to perform sophisticated pattern matching using regular expressions, or regexes, in Python. This tutorial explores more regex tools and techniques that are available in Python.

    Space Science With Python – Explore and analyze the wonders and mysteries of space… with Python!

    Getting Machine Learning to Production – Millions of web apps get deployed to production every day. But machine learning models aren’t web apps. And very few people are talking about deployment. Learn how tools like Streamlit can help take the edge off deploying your machine learning models.

    Projects:

    • genetic-drawing: A Genetic Algorithm Toy Project for Drawing
    • Anastasia Opara - Procedural Artist
    • MicroscoPy: An Open-Source, Motorized, and Modular Microscope Built Using LEGO Bricks, Arduino, Raspberry Pi and 3D Printing
    • Additional Links:

      • SPICE: An Observation Geometry System for Space Science Missions
      • SpiceyPy documentation: Read the docs
      • SPICE lessons provided by the NAIF translated to use Python code
      • Level up your Python skills with our expert-led courses:

        • Lists and Tuples in Python
        • Pandas DataFrames 101
        • Reading and Writing Files in Python
        • Support the podcast & join our community of Pythonistas

          ...more
          View all episodesView all episodes
          Download on the App Store

          The Real Python PodcastBy Real Python

          • 4.7
          • 4.7
          • 4.7
          • 4.7
          • 4.7

          4.7

          136 ratings


          More shows like The Real Python Podcast

          View all
          Software Engineering Radio - the podcast for professional software developers by se-radio@computer.org

          Software Engineering Radio - the podcast for professional software developers

          272 Listeners

          The Changelog: Software Development, Open Source by Changelog Media

          The Changelog: Software Development, Open Source

          283 Listeners

          Thoughtworks Technology Podcast by Thoughtworks

          Thoughtworks Technology Podcast

          41 Listeners

          Talk Python To Me by Michael Kennedy

          Talk Python To Me

          592 Listeners

          Software Engineering Daily by Software Engineering Daily

          Software Engineering Daily

          625 Listeners

          Soft Skills Engineering by Jamison Dance and Dave Smith

          Soft Skills Engineering

          269 Listeners

          Super Data Science: ML & AI Podcast with Jon Krohn by Jon Krohn

          Super Data Science: ML & AI Podcast with Jon Krohn

          298 Listeners

          Python Bytes by Michael Kennedy and Brian Okken

          Python Bytes

          213 Listeners

          Data Engineering Podcast by Tobias Macey

          Data Engineering Podcast

          142 Listeners

          Syntax - Tasty Web Development Treats by Wes Bos & Scott Tolinski - Full Stack JavaScript Web Developers

          Syntax - Tasty Web Development Treats

          981 Listeners

          DataFramed by DataCamp

          DataFramed

          266 Listeners

          Kubernetes Podcast from Google by Abdel Sghiouar, Kaslin Fields

          Kubernetes Podcast from Google

          181 Listeners

          Practical AI by Practical AI LLC

          Practical AI

          190 Listeners

          The Stack Overflow Podcast by The Stack Overflow Podcast

          The Stack Overflow Podcast

          64 Listeners

          The Pragmatic Engineer by Gergely Orosz

          The Pragmatic Engineer

          52 Listeners