From the course: Using Rust with Python
Unlock this course with a free trial
Join today to access over 23,200 courses taught by industry experts.
Rust-built Python tools - Rust Tutorial
From the course: Using Rust with Python
Rust-built Python tools
- [Instructor] There are Rust tools for Python that can make a really big difference in performance. And to start with, let's talk about the data frame tool Polars. And you can see from this diagram that Polars has some of the best performance possible when you're dealing with big data. And it has extremely large performance gains when you compare it to things like Spark or even Dask or PANDAS, et cetera. In fact, PANDAS won't even run for something that has a million rows. The 50 gigabyte difference is something that handles easily in Rust because of the way the language is developed. Now, if we take a look at Polars here, it is a data frame library written in Rust. It's designed for parallel and efficient data processing, and it's a key component in big data and distributed systems. And it also has advanced, multi-threaded capabilities, which is one of the really advanced features of the Rust language. And it leverages Rust memory, safety and performance. And it can often compete…
Contents
-
-
Introduction: Instructor45s
-
Introduction: Rust and Python5m
-
PyO3 installation4m 15s
-
(Locked)
Basic Rust library4m 46s
-
(Locked)
Rust to Python3m 33s
-
(Locked)
Rust ownership model4m 59s
-
(Locked)
Diagram of a PyO3 project3m 40s
-
(Locked)
Python calculator CLI3m 54s
-
(Locked)
PyO3 features2m 38s
-
(Locked)
PyO3 exceptions4m 21s
-
(Locked)
Call Python from Rust5m 53s
-
(Locked)
Run Python with embedded Rust4m 47s
-
(Locked)
Embedded Rust CLI diagram3m 34s
-
(Locked)
Embedded Rust CLI4m 31s
-
(Locked)
Embedded Rust CLI test4m 59s
-
(Locked)
Rust-built Python tools3m 52s
-
(Locked)
Using the Rust Ruff linter5m 15s
-
(Locked)
Using Polars in Python with Rust4m 9s
-
(Locked)
Polars CLI in Rust4m
-
(Locked)
Polars CLI test in Rust4m 21s
-
(Locked)
Polars CLI integration test3m 29s
-
(Locked)
Polars criterion benchmarking5m 39s
-