'AttributeError: 'numpy.int64' object has no attribute 'isnull'

I am trying to do EDA and running below code data = data[~data.age.isnull()].copy()

Getting error as "AttributeError: 'numpy.int64' object has no attribute 'isnull'" Please help me if anybody knows. Thanks

I tried to convert the values but still did not get a perfect solution. What I am missing?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source