Jun-10-2020, 01:06 PM
In a given dataset, I want to print the rows which have null value but with their actual values and not any bool values.
For example, if the dataset is given like this,
But, I want an output where, if I am missing any value in that particular row, I want the output to be like this.
For example, if the dataset is given like this,
dict = {'First Score':[100, 90, 80, 95],
'Second Score': [np.nan, 45, 56, np.nan],
'Third Score':[10, 40, 80, 98]}
df = pd.DataFrame(dict)
df.isnull()Here, it gives the output in bool.But, I want an output where, if I am missing any value in that particular row, I want the output to be like this.
Second Score NAN 45 56 NAN
