
* 겪고 있는 문제 상황을 최대한 자세하게 작성해주세요.
* 문제 해결을 위해 어떤 시도를 해보았는지 구체적으로 함께 알려주세요.
KeyError: "None of [Index(['Open', 'High', 'Low', 'Adj Close', 'Volume'], dtype='object')] are in the [columns]"

작성한 코드 및 에러 메세지
HTTP Error 404: Not Found - symbol "BRKB" not found or invalid periods
---------------------------------------------------------------------------
KeyError Traceback (most recent call last)
<ipython-input-108-96d7682af230> in <cell line: 5>()
3 df = df[['Symbol','Name']].head(100)
4
----> 5 df['rate'] = df['Symbol'].apply(final_rate)
6
7 cond = df['rate'] > -50
/usr/local/lib/python3.10/dist-packages/pandas/core/indexes/base.py in _raise_if_missing(self, key, indexer, axis_name)
6128 if use_interval_msg:
6129 key = list(key)
-> 6130 raise KeyError(f"None of [{key}] are in the [{axis_name}]")
6131
6132 not_found = list(ensure_index(key)[missing_mask.nonzero()[0]].unique())
KeyError: "None of [Index(['Open', 'High', 'Low', 'Adj Close', 'Volume'], dtype='object')] are in the [columns]"
