Skip to content

Commit

Permalink
Adjust regex
Browse files Browse the repository at this point in the history
  • Loading branch information
stefmolin committed Oct 12, 2024
1 parent a22afdf commit 5a7b28a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ch_02/5-subsetting_data.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -2127,7 +2127,7 @@
],
"source": [
"df.loc[\n",
" (df.place.str.contains(r'CA|California$')) & (df.mag > 3.8),\n",
" (df.place.str.contains(r'CA$|California$')) & (df.mag > 3.8),\n",
" ['alert', 'mag', 'magType', 'title', 'tsunami', 'type']\n",
"]"
]
Expand Down

0 comments on commit 5a7b28a

Please sign in to comment.