Problem with visualizing tech stocks project in the analyze financial data skill path

Whilst working on this project i have encountered the following error.
TypeError Traceback (most recent call last)
in
1 stock_data_closing_prices = stock_data[‘Adj Close’]
2 stock_data_closing_prices.plot()
----> 3 plt.ylabel(“Adjusted Closing Price”)
4 plt.title(“Tech Stocks Adjusted Price Over Time”)
5 plt.show()

TypeError: ‘str’ object is not callable
and I have no idea why. I have not defined anything else as str as this is the problem I’ve seen generally contribute to this error. Any help would be appreciated thanks.

The issue does not occur when using subplots within a figure either, i am at odds to what the problem could be.

Mind adding a ink to the project and formatting your code as per the guidance in this link- How to ask good questions (and get good answers)

String object not callable suggest you’ve tried to use a call syntax
for a type that’s actually a string, for example-

x = "red"
test = x()

Have you perhaps would up with a type you weren’t expecting at some point?

After coming back to it just now it appears to be working, I am unsure what the issue was. Thanks for taking the time to reply!

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.