Python for Finance
Can someone please explain what I am doing wrong? It gives me a KeyError for 'description' on 15.2 in Python for Finance the task is : =================================================================== During this project we will analyze the Bitcoin price, calculate investment values and return rates. The project will have multiple steps, each step requiring the completion of several tasks. At the end of the project we will be able to determine the real price of Bitcoin, and analyze and create charts based on its historic values. Let's get started with the very first task! Task The Bitcoin price can be accessed on Yahoo Finance using the ticker 'BTC-USD'. Import the yfinance package and output the 'description' field of the info object. import yfinance as yf data = yf.Ticker("BTC-USD") Hint: Here is the syntax for accessing the description: data.info['description'] ============================================================= Here is my code : ============================================================= import yfinance as yf data = yf.Ticker("BTC-USD") print(data.info['description']) ======================= Output : ======================= Traceback (most recent call last): File "file0.py", line 4, in <module> print(data.info['description']) KeyError: 'description'