DataThink Development
  • Modules

On this page

  • Task 11: Strings and Regex
    • Background
    • Reading
    • Tasks

task-11

Task 11: Strings and Regex

Background

Using Regular Expressions (Regex) and String Processing Functions to find character string patterns is a valuable tool in data analysis and is available with all operating systems and many different programming languages. It is a powerful tool once it is understood. The str namespace in Polars gives you access to String Precessing Functions that you can combine with Regex to write performant string queries. The three tasks below can be completed in many different ways. As a challenge, my code to complete this entire task less than 10 lines.

  • Back or Course Website

Reading

This reading will help you complete the tasks below.

  • o Python for Data Science - Strings and Text
  • o Polars - Strings
  • o Regular Expression examples (optional)
  • o Regular Expression support applet (optional)

Tasks