Tessanix
Tessanix
MModular
Created by Tessanix on 3/27/2024 in #questions
Questions relative to Mojo's optimization and speed
Hello, I have a project in Python that requires doing a lot of processing on datas and I'm noticing it taking a lot of time. So I'm planning to use Mojo instead of Python. 1. I know that Mojo is way faster than Python in most cases but I'm wondering if it's still the case if I use python libraries like pandas or scikit-learn like so:
from PythonInterface import Python
let pd = Python.import_module("pandas")
from PythonInterface import Python
let pd = Python.import_module("pandas")
How can Mojo run these libraries functions without the python interpreter being slow ? 2. Also, if I'm writing this command << %%python >> in a jupyter notebook cell with the Mojo kernel activated, will the code below be executed by the python interpreter or by the Mojo compiler?
4 replies