Está aparecendo essa erro aqui
cotacoes = cotacoes[["Date", "Open", "High", "Low", "Close", "Ativo"]]
KeyError Traceback (most recent call last)
<ipython-input-53-ba066280c42b> in <cell line: 1>()
----> 1 cotacoes = cotacoes[["Date", "Open", "High", "Low", "Close", "Ativo"]]
2 frames
/usr/local/lib/python3.10/dist-packages/pandas/core/indexes/base.py in _raise_if_missing(self, key, indexer, axis_name)
5939
5940 not_found = list(ensure_index(key)[missing_mask.nonzero()[0]].unique())
-> 5941 raise KeyError(f"{not_found} not in index")
5942
5943 @overload
KeyError: "['Ativo'] not in index"