How to set xticks yearly according to date time

image

Hi all,
Just trying out the weather prediction project, and ran into this problem. How could I update the ticks so that it would follow the datetime yearly?

Thank you!

Update:

I kina solved it? But its the wrong year.

image

Once again, thank you !

Update:

image

Need to turn the index into datetime first. Made a rookie mistake.

1 Like