python (65.1k questions)
javascript (44.2k questions)
reactjs (22.7k questions)
java (20.8k questions)
c# (17.4k questions)
html (16.3k questions)
r (13.7k questions)
android (12.9k questions)
How to exchange Polars-DataFrame between Rust and Python
I want to write a Python extension using Rust with Ctypes or Pyo3 to get better performance than native Python. But how to exchange data such as Polars DataFrame or ndarray type between Rust and Pytho...
Hakase
Votes: 0
Answers: 0
How to pass a Rust function as a callback to Python using pyo3
I am using Pyo3 to call Rust functions from Python and vice versa.
I am trying to achieve the following:
Python calls rust_function_1
Rust function rust_function_1 calls Python function python_funct...
Bruno Rijsman
Votes: 0
Answers: 1
How do I iterate over a pyo3 PyObject in Rust?
I have a pre-imported module that I'm calling a method with python gil, something like the following.
Python::with_gil(|py| {
let res = module.call_method1(py, "my_method", (arg1, arg2))...
AdmiralJonB
Votes: 0
Answers: 1