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: Vaex vs. pandas

Solution: Vaex vs. pandas

From the course: Faster pandas

Start my 1-month free trial

Solution: Vaex vs. pandas

(upbeat music) - [Instructor] Let's have a look at the solution. So we import vaex and we read CSV the same way we do with the regular pandas. However, when we calculate the groupby, the API is a bit different. And we do a groupby by the vendor ID and then pass an aggregation function from vaex.agg. And finally we print the output, lets have a look, Python, mean distance. And we see that the vendor ID 2 has the longest rights.

Contents