I am kind of just 10 hours into Numba and still got a lot of questions. I’ve got the function from the ~5 minute intro.
from numba import jit
import pandas as pd
x = {'a': [1, 2, 3], 'b': [20, 30, 40]}
@jit
def use_pandas(a):
df = pd.DataFrame.from_dict(a)
df += 1
return df.cov()
- How do I know that Numba compiled that function?
- How to validate that the compilation was successful?
- How do I know in which mode the function was compiled if the compilation was successful?
3.1. How do I know if the function was compiled asnopythonmode?
3.2. How do I know if the function was compiled asobjectmode?
3.3. How do I know if the function was compiled aspythonmode? Or does @jit fail if fallback toobjectfails? - How do I know in which mode the function was compiled if the compilation was not successful?
If there is a notebook that allows to see it and play with this stuff, that would be great.