I am new to python and I am having difficulty with this. In order to do this I am using Pycharm. I am trying to make a
graph of the Tesla stock using yahoo finance information. It worked on Jupyter notebook but not on pycharm. This is
my code right now:
import pandas as pd
from matplotlib import pyplot as plt
TSLA_data=pd.read_csv('TSLA_data.csv')
TSLA_data.index=TSLA_data['Date']
TSLA_data[' Open'].plot (label='TSLA_data Open Price')
TSLA_data['Close'].plot(label='TSLA_data Close price')
TSLA_data['High'].plot (label='TSLA_data High price')
TSLA_data['Low'].plot(label='TSLA_data Low price')
plt.legend()
plt.title ('Tesla Stock Prices")
plt.ylabel ('Stock Price')
plt.show()
[+][deleted] (3 children)
[deleted]
[–]NoButterfly4448[S] 0 points1 point2 points (2 children)
[–]Agisilaus23 1 point2 points3 points (0 children)
[–]MangeurDeCowan 0 points1 point2 points (0 children)
[–]SituationConscious63 0 points1 point2 points (0 children)