Regex: Regular Expression
Regex are useful in many applications beyond data sceince.
# For example, Social Security Numbers(SSNs)
r"[0-9]{3}-[0-9]{2}-[0-9]{4}" # Regular Expression Syntax
# 3 of any digit, then a dash,
# then 2 of any digit, then a dash,
# then 4 of any digit
# result: '[0-9]{3}-[0-9]{2}-[0-9]{4}'
Basics Regex Syntax

Questions!

Convenient Regex


'Computer Science 🌋 > Machine Learning🐼' 카테고리의 다른 글
| Feature Engineering (0) | 2023.05.25 |
|---|---|
| Canonicalization (0) | 2023.05.24 |
| Python String Method (0) | 2023.05.24 |
| Reproduce Data: Compute Incidence (0) | 2023.05.24 |
| Gather more data & join data on primary keys (0) | 2023.05.24 |