Exercise

Extracting numbers from strings

The length_of_time field in the UFO dataset is a text field that has the number of minutes within the string. Here, you'll extract that number from that text field using regular expressions.

Instructions

100 XP
  • Search time_string for numbers using an appropriate RegEx pattern.
  • Use the .apply() method to call the return_minutes() on every row of the length_of_time column.
  • Print out the .head() of both the length_of_time and minutes columns to compare.