NameError: name 'nan' is not defined in Pandas and Python

How to Map Column with Dictionary in Pandas