I am getting this error because I do not have the YEAR column in the dataset ,
I have downloaded the files from Kaggle
which maybe why there is a difference,
please advise since otherwise I could not follow along this part.
We can learn more about where these missing values are located by visualizing them with a heatmap , a graphical representation of our data in which values are represented as colors. We’ll use the seaborn library to create the heatmap.
Note below that we first reset the index to be the
YEARcolumn so that we’ll be able to see the corresponding year on the left side of the heatmap:
None of ['YEAR'] are in the columns
I see that a column could be added to the dataframe but then I would have to write out the years around 300+ times to match the number of rows which would be a time consuming solution , if there are any other suggestions?