Closed LinuxIsCool closed 1 year ago
You don't see
import pandas as pd
in the module file?
No it's not there.
Can you make sure your nb looks like this? Also, if possible, can you share a small reproducible example?
#| default_exp module
#| export
import pandas as pd
#|export
def df():
return pd.DataFrame()
My bad. I had #| hide instead of #| export.
If this is my jupyter:
Then after running
nbdev_export
, my module looks like:And when I try to import and use the function somewhere else:
Then I get the error
NameError: name 'pd' is not defined