Pull the four-digit year out of orders["date"] using .str.extract() with a capt…

pandas · from Text with .str

.str.lower().str.strip().str.contains().str.replace().str.split().str.extract()

Putting the kettle on…

Starting up…

Exercise 4

Pull the four-digit year out of orders["date"] using .str.extract() with a capture group.

your answer
stuck? the lesson behind it
Text with .str
One capital letter, one wrong number, no error message.