Podbean logo
  • Discover
  • Podcast Features
    • Podcast Hosting

      Start your podcast with all the features you need.

    • Podbean AI Podbean AI

      AI-Enhanced Audio Quality and Content Generation.

    • Blog to Podcast

      Repurpose your blog into an engaging podcast.

    • Video to Podcast

      Convert YouTube playlists to podcasts, videos to audios.

  • Monetization
    • Ads Marketplace

      Join Ads Marketplace to earn through podcast sponsorships.

    • PodAds

      Manage your ads with dynamic ad insertion capability.

    • Apple Podcasts Subscriptions Integration

      Monetize with Apple Podcasts Subscriptions via Podbean.

    • Live Streaming

      Earn rewards and recurring income from Fan Club membership.

  • Podbean App
    • Podcast Studio

      Easy-to-use audio recorder app.

    • Podcast App

      The best podcast player & podcast app.

  • Help and Support
    • Help Center

      Get the answers and support you need.

    • Podbean Academy

      Resources and guides to launch, grow, and monetize podcast.

    • Podbean Blog

      Stay updated with the latest podcasting tips and trends.

    • What’s New

      Check out our newest and recently released features!

    • Podcasting Smarter

      Podcast interviews, best practices, and helpful tips.

  • Popular Topics
    • How to Start a Podcast

      The step-by-step guide to start your own podcast.

    • How to Start a Live Podcast

      Create the best live podcast and engage your audience.

    • How to Monetize a Podcast

      Tips on making the decision to monetize your podcast.

    • How to Promote Your Podcast

      The best ways to get more eyes and ears on your podcast.

    • Podcast Advertising 101

      Everything you need to know about podcast advertising.

    • Mobile Podcast Recording Guide

      The ultimate guide to recording a podcast on your phone.

    • How to Use Group Recording

      Steps to set up and use group recording in the Podbean app.

  • All Arts Business Comedy Education
  • Fiction Government Health & Fitness History Kids & Family
  • Leisure Music News Religion & Spirituality Science
  • Society & Culture Sports Technology True Crime TV & Film
  • Live
  • How to Start a Podcast
  • How to Start a Live Podcast
  • How to Monetize a podcast
  • How to Promote Your Podcast
  • How to Use Group Recording
  • Log in
  • Start your podcast for free
  • Podcasting
    • Podcast Features
      • Podcast Hosting

        Start your podcast with all the features you need.

      • Podbean AI Podbean AI

        AI-Enhanced Audio Quality and Content Generation.

      • Blog to Podcast

        Repurpose your blog into an engaging podcast.

      • Video to Podcast

        Convert YouTube playlists to podcasts, videos to audios.

    • Monetization
      • Ads Marketplace

        Join Ads Marketplace to earn through podcast sponsorships.

      • PodAds

        Manage your ads with dynamic ad insertion capability.

      • Apple Podcasts Subscriptions Integration

        Monetize with Apple Podcasts Subscriptions via Podbean.

      • Live Streaming

        Earn rewards and recurring income from Fan Club membership.

    • Podbean App
      • Podcast Studio

        Easy-to-use audio recorder app.

      • Podcast App

        The best podcast player & podcast app.

  • Advertisers
  • Enterprise
  • Pricing
  • Resources
    • Help and Support
      • Help Center

        Get the answers and support you need.

      • Podbean Academy

        Resources and guides to launch, grow, and monetize podcast.

      • Podbean Blog

        Stay updated with the latest podcasting tips and trends.

      • What’s New

        Check out our newest and recently released features!

      • Podcasting Smarter

        Podcast interviews, best practices, and helpful tips.

    • Popular Topics
      • How to Start a Podcast

        The step-by-step guide to start your own podcast.

      • How to Start a Live Podcast

        Create the best live podcast and engage your audience.

      • How to Monetize a Podcast

        Tips on making the decision to monetize your podcast.

      • How to Promote Your Podcast

        The best ways to get more eyes and ears on your podcast.

      • Podcast Advertising 101

        Everything you need to know about podcast advertising.

      • Mobile Podcast Recording Guide

        The ultimate guide to recording a podcast on your phone.

      • How to Use Group Recording

        Steps to set up and use group recording in the Podbean app.

  • Discover
  • Log in
    Sign up free
The Real Python Podcast

The Real Python Podcast

Technology

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

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

2020-06-26
Download Right click and do "save link as"

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

view more

More Episodes

Advantages of Protobuf for Serialization in Python
2022-05-20
Start Testing Your Python with doctest & Pagination in Django
2022-05-13
Run Python in a Browser With Pyodide & The Power of f-Strings
2022-05-06
Type-Safe ORM With Prisma Client & Real Python at PyCon US 2022
2022-04-22
Class Constructors & Pythonic Image Processing
2022-04-15
Creating Better Error Messages for Python 3.10 & 3.11
2022-04-08
Building a Hash Table in Python and Thoughtful REST API Design
2022-04-01
Becoming More Effective at Manipulating Data With Pandas
2022-03-25
Making Your Notebook Interactive and Using Python's Assert
2022-03-18
Tools for Setting Up Python on a New Machine
2022-03-11
Defining Optional Arguments and Moving Beyond "Beginner" Python
2022-03-04
OAuth 2 and Authentication Choices for Your Python Project
2022-02-25
Drawing Fractals With Python and Working With a Weather API
2022-02-18
Improving Your Django and Python Developer Experience
2022-02-11
Manipulating and Analyzing Audio in Python
2022-02-04
What Is a JIT and How Can Pyjion Speed Up Your Python?
2022-01-28
Designing for Users and Building a Social Network With Django
2022-01-21
Launching Python, Virtual Environments, and Locking Dependencies With Brett Cannon
2022-01-14
Continuing to Unravel Python's Syntactic Sugar With Brett Cannon
2022-01-07
2021 Real Python Articles Wrap Up
2021-12-24
  • ←
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • →
012345678910111213141516171819

Get this podcast on your
phone, FREE

Download Podbean app on App Store Download Podbean app on Google Play

Create your
podcast in
minutes

  • Full-featured podcast site
  • Unlimited storage and bandwidth
  • Comprehensive podcast stats
  • Distribute to Apple Podcasts, Spotify, and more
  • Make money with your podcast
Get started

It is Free

  • Podcast Services

    • Podcast Features
    • Pricing
    • Enterprise Solution
    • Private Podcast
    • The Podcast App
    • Live Stream
    • Audio Recorder
    • Remote Recording
    • Podbean AI
  •  
    • Create a Podcast
    • Video Podcast
    • Start Podcasting
    • Start Radio Talk Show
    • Create a Podcast for Spotify
    • Education Podcast
    • Church Podcast
    • Get Sermons Online
    • Free Audiobooks
  • MONETIZATION & MORE

    • Podcast Advertising
    • Dynamic Ads Insertion
    • Apple Podcasts Subscriptions
    • AI Podcast Creator
    • Blog to Podcast
    • YouTube to Podcast
    • Submit Your Podcast
    • Switch to Podbean
    • Podbean Plugins
  • KNOWLEDGE BASE

    • How to Start a Podcast
    • How to Start a Live Podcast
    • How to Monetize a Podcast
    • How to Promote Your Podcast
    • Mobile Podcast Recording Guide
    • How to Use Group Recording
    • Podcast Advertising 101
  • Support

    • Support Center
    • What’s New
    • Free Webinars
    • Podcast Events
    • Podbean Academy
    • Podbean Amplified Podcast
    • Badges
    • Resources
    • Developers
  • Podbean

    • About Us
    • Podbean Blog
    • Careers
    • Press and Media
    • Green Initiative
    • Affiliate Program
    • Contact Us
  • Privacy Policy
  • Cookie Policy
  • Terms of Use
  • Consent Preferences
  • Copyright © 2015-2026 Podbean.com