Skip to content

Commit 0cea563

Browse files
committed
Proof read Regex and add the description how .str is a accessor in pandas
1 parent 9f1ec6d commit 0cea563

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

content/regex/regex.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"metadata": {},
77
"source": [
88
"---\n",
9-
"title: Regular Expressions (Fall 2025)\n",
9+
"title: Regular Expressions\n",
1010
"---\n",
1111
"\n",
1212
"::: {note} Learning Outcomes\n",
@@ -46,6 +46,8 @@
4646
"| Membership | `'_' in s` | `ser.str.contains(_)` |\n",
4747
"| Length | `len(s)` | `ser.str.len()` |\n",
4848
"\n",
49+
"Note that the `.str` method is also an accessor, similar to the `.dt` accessor we discussed in lecture on [Data Cleaning and EDA](https://ds100.org/course-notes/eda/#temporality-with-pandas-dt-accessors).\n",
50+
"\n",
4951
"We'll discuss the differences between Python string functions and `pandas` `Series` methods in the following section on canonicalization.\n",
5052
"\n",
5153
"### Canonicalization\n",

0 commit comments

Comments
 (0)