im a total newbie to this and i got this error below while publishing my app. any tips on how to fix ? i think most of the lines will get solved by creating a venv which i didnt create earlier... but the keyerror is what im concerned about.
KeyError: "[('Close', 'BTC-USD')] not in index"
Traceback:
File "/cloud/project/app.py", line 45, in <module>
st.line_chart(df)File "/cloud/lib/venv/lib/python3.11/site-packages/streamlit/runtime/metrics_util.py", line 444, in wrapped_func
result = non_optional_func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/cloud/lib/venv/lib/python3.11/site-packages/streamlit/elements/vega_charts.py", line 734, in line_chart
chart, add_rows_metadata = generate_chart(
^^^^^^^^^^^^^^^File "/cloud/lib/venv/lib/python3.11/site-packages/streamlit/elements/lib/built_in_chart_utils.py", line 186, in generate_chart
df, x_column, y_column, color_column, size_column = _prep_data(
^^^^^^^^^^^File "/cloud/lib/venv/lib/python3.11/site-packages/streamlit/elements/lib/built_in_chart_utils.py", line 423, in _prep_data
selected_data = _drop_unused_columns(
^^^^^^^^^^^^^^^^^^^^^File "/cloud/lib/venv/lib/python3.11/site-packages/streamlit/elements/lib/built_in_chart_utils.py", line 602, in _drop_unused_columns
return df[keep]
~~^^^^^^File "/cloud/lib/venv/lib/python3.11/site-packages/pandas/core/frame.py", line 4113, in __getitem__
indexer = self.columns._get_indexer_strict(key, "columns")[1]
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/cloud/lib/venv/lib/python3.11/site-packages/pandas/core/indexes/multi.py", line 2782, in _get_indexer_strict
self._raise_if_missing(key, indexer, axis_name)File "/cloud/lib/venv/lib/python3.11/site-packages/pandas/core/indexes/multi.py", line 2800, in _raise_if_missing
raise KeyError(f"{keyarr[cmask]} not in index")