ValueError: Value of 'x' is not the name of a column in 'data_frame'. Expected one of [] but received: fcnt
Traceback:
File "/usr/local/lib/python3.9/site-packages/streamlit/scriptrunner/script_runner.py", line 554, in _run_script
exec(code, module.dict)
File "/app/app.py", line 308, in
plot_num_of_hotspots(id=st.session_state.sensor['id'])
File "/app/app.py", line 110, in plot_num_of_hotspots
fig = px.line(df, x='fcnt', y='count', title="Number of hotspots reporting disco packet", markers=True)
File "/usr/local/lib/python3.9/site-packages/plotly/express/_chart_types.py", line 264, in line
return make_figure(args=locals(), constructor=go.Scatter)
File "/usr/local/lib/python3.9/site-packages/plotly/express/_core.py", line 1948, in make_figure
args = build_dataframe(args, constructor)
File "/usr/local/lib/python3.9/site-packages/plotly/express/_core.py", line 1405, in build_dataframe
df_output, wide_id_vars = process_args_into_dataframe(
File "/usr/local/lib/python3.9/site-packages/plotly/express/_core.py", line 1207, in process_args_into_dataframe
raise ValueError(err_msg)
ValueError: Value of 'x' is not the name of a column in 'data_frame'. Expected one of [] but received: fcnt Traceback:
File "/usr/local/lib/python3.9/site-packages/streamlit/scriptrunner/script_runner.py", line 554, in _run_script exec(code, module.dict) File "/app/app.py", line 308, in
plot_num_of_hotspots(id=st.session_state.sensor['id'])
File "/app/app.py", line 110, in plot_num_of_hotspots
fig = px.line(df, x='fcnt', y='count', title="Number of hotspots reporting disco packet", markers=True)
File "/usr/local/lib/python3.9/site-packages/plotly/express/_chart_types.py", line 264, in line
return make_figure(args=locals(), constructor=go.Scatter)
File "/usr/local/lib/python3.9/site-packages/plotly/express/_core.py", line 1948, in make_figure
args = build_dataframe(args, constructor)
File "/usr/local/lib/python3.9/site-packages/plotly/express/_core.py", line 1405, in build_dataframe
df_output, wide_id_vars = process_args_into_dataframe(
File "/usr/local/lib/python3.9/site-packages/plotly/express/_core.py", line 1207, in process_args_into_dataframe
raise ValueError(err_msg)