NameError: name 'pd' is not defined
aman-ji-gupta opened this issue · 1 comments
facing this issue while running the script
Traceback:
File "c:\programdata\anaconda3\lib\site-packages\streamlit\script_runner.py", line 337, in _run_script
exec(code, module.dict)
File "C:\Users\Lenovo\cowin-vaccination-slot-availability-main\app.py", line 28, in
mapping_df = load_mapping()
File "c:\programdata\anaconda3\lib\site-packages\streamlit\caching.py", line 573, in wrapped_func
return get_or_create_cached_value()
File "c:\programdata\anaconda3\lib\site-packages\streamlit\caching.py", line 555, in get_or_create_cached_value
return_value = func(*args, **kwargs)
File "C:\Users\Lenovo\cowin-vaccination-slot-availability-main\app.py", line 16, in load_mapping
df = pd.read_csv("district_mapping.csv")
Please enter the following line - import pandas as pd
This already exists in the app.py file. Try using stackoverflow before creating such issues! Thanks!