Hi guys. Currently doing the “Intro to Data Visualization with Python” course. I’m working on the “Make a Line Chart for Research” project bit, working in a Jupyter notebook and all, and I can’t figure something out. I’ve looked online but failed to figure out what I’m doing wrong.
I’m trying to label the x and y axes for a chart. This is what I put, underneath the line of code for the title:
plt.xlabel('Month')
plt.ylabel('Precipitation (in.)')
The error is regarding the first line (x axis) and says there’s a Type Error, and that the “str object is not callable.” I’ve tried looking this up but it seems like, with what I’ve searched and found, I’m doing things right? I can’t figure out why this error keeps being thrown. Anyone know what I’m doing wrong? Thanks a lot.