Hi,
I am not able to use the pandas module even if the module is installed, without page navigation it is working but if i try to use it with page navigation i am getting error
Traceback:
File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/exec_code.py", line 85, in exec_func_with_error_handling
result = func()
^^^^^^File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/runtime/scriptrunner/script_runner.py", line 576, in code_to_exec
exec(code, module.__dict__)File "/mount/src/python_projects/Streamlit/streamlit_app.py", line 53, in <module>
pg.run()File "/home/adminuser/venv/lib/python3.12/site-packages/streamlit/navigation/page.py", line 291, in run
exec(code, module.__dict__)File "/mount/src/python_projects/Streamlit/views/data_dashboard.py", line 2, in <module>
import pandas as pdFile "/home/adminuser/venv/lib/python3.12/site-packages/pandas/__init__.py", line 37, in <module>
from pandas._config import (File "/home/adminuser/venv/lib/python3.12/site-packages/pandas/_config/__init__.py", line 20, in <module>
from pandas._config import config
here is the code for page navigation:
data_dashboard = st.Page(
“views/data_dashboard.py”,
title=“Data Dashboard”,
icon=“:material/smart_toy:”,
)
— NAVIGATION SETUP [WITHOUT SECTIONS] —
pg = st.navigation(pages=[about_page,sales_dashboard_page, chatbot_page])
— NAVIGATION SETUP [WITH SECTIONS]—
pg = st.navigation(
{
“Info”: [about_page],
“Personal Projects”: [chatbot_page,data_dashboard],
}
)
pg.run()