Check If Any Value is NaN in pandas DataFrame (Example) | Test for Missings | isnull & any Functions

preview_player
Показать описание
Python code of this video:

import pandas as pd # Import pandas

data = pd.DataFrame({'x1':[1, 1, float('NaN'), 1, 1], # Create example DataFrame
'x2':range(1, 6),
'x3':['a', 'b', 'c', 'd', 'e']})
print(data) # Print example DataFrame

# True

Follow me on Social Media:

Рекомендации по теме