What is the output for the given python code?

import pandas as pd
import numpy as np
d = {'Name':pd.Series(['Tom','James','Ricky','Vin']),
   'Age':pd.Series([25,np.NAN ,24,np.NAN]),
   'Rating':pd.Series([4.23,3.24,3.98, 4])}
df = pd.DataFrame(d)
x=df.Age.isnull()
print(x)

1
0    False
1     True
2    False
3     True
2
0    True
1    False
2    True
3     False
3
0    0
1     1
2    0
3     1
4
0    1
1     0
2    1
3     0

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation