From the course: Faster pandas

Unlock the full course today

Join today to access over 22,500 courses taught by industry experts or purchase this course individually.

Solution: Identify bottleneck

Solution: Identify bottleneck

From the course: Faster pandas

Start my 1-month free trial

Solution: Identify bottleneck

(upbeat music) - [Instructor] So let's start Ipython. And we're going to use the run command to load our code. And first we're just going to check that the code is working. So, median_diff of bids.csv.xz. And it's about 1.3 cents difference. And now we're going to use the %prun magic to run the command. I like to sort it by the cumulative time, and then medium_diff of bids.csv.xz. And we see that most of the time, it's in the read_csv function which probably means you need to pick a better civilization format to store your data.

Contents