From the course: Faster pandas
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Solution: Selecting and manipulating data
From the course: Faster pandas
Solution: Selecting and manipulating data
“
(upbeat music) - [Instructor] Here's my solution. On the last error, we use Boolean indexing to select only the rows that the error code is bigger or equal to 400. We extract only the time column and get its maximum value. Let's check, ipython, and run last_error.py. And then our data frame equal to load of data frame. And finally, we're going to time it. And this takes 1.27 milliseconds compared to the two seconds we had before.