dataprofessor / streamlit_freecodecamp

Build 12 Data Apps in Python with Streamlit
577 stars 541 forks source link

AttributeError: 'DataFrame' object has no attribute 'close' #2

Closed shubhamtechgeek closed 3 years ago

shubhamtechgeek commented 3 years ago

Hello there I am new to programming entirely. But I found this a little easy so I thought of starting from here. I managed to download and install Anaconda, make a new environment, write the entire code but at last I am having problems with the streamlit app. It says [AttributeError: 'DataFrame' object has no attribute 'close'] The programme is same 2 same. If you could point me into the right direct that would be great I am attaching snapshot of the issue.

AttributeError: 'DataFrame' object has no attribute 'close' Traceback: File "c:\programdata\anaconda3\lib\site-packages\streamlit\script_runner.py", line 337, in _run_script exec(code, module.dict) File "C:\Users\shubh\PycharmProjects\pythonProject1\1.py", line 21, in st.line_chart(tickerDf.close) File "c:\programdata\anaconda3\lib\site-packages\pandas\core\generic.py", line 5139, in getattr return object.getattribute(self, name)

5454576

Sachin-crypto commented 3 years ago

It's 'Close' st.line_chart(tickerDf.Close)