Problems with .max() and sns

I am facing one problem here Here the .max() or the .sort_values() is not working properly.

Another problem that I’m facing is with plots I can’t seem to use seaborn, it’s throwing error.

Please help me.

They are working as intended.

Your column contains text, which means any max or sort methods will try to compare the values in a lexicographic order.

You need to convert your columns to a numeric datatype in order to achieve the desired behavior.

Can you please take a look at this? Click here

The Year Column was string and had couple of “None” Values. So I replaced None with 0000 and then tried to convert the whole column to a date format. But it’s not working. It is saying that Year 0000 is out of range which I know why. How do I handle Nan values in Year Format??