Hey everyone! I’m doing projects in the Data Science Visualization specialization and I’ve just finished Sea Level Project. However, when I copied my code (which works perfectly fine on Repl.it) to PyCharm I got this mistake:
Thank you so much! I didn’t even think about looking at the csv file. Basically, my Year column was different (it had a date instead of just year), so i did: pd.DatetimeIndex(df[‘Date’]).year
and now everything works.
Thanks again!