English

Which statement is correct to replace 0 with Nan of eng column only?

Advertisements
Advertisements

Question

Which statement is correct to replace 0 with Nan of eng column only? 

Options

  • df[' eng'] .replace(0,py.nan,inplace=True) 

  • df[' eng'] .change(0,py.nan,inplace=True)

  • df['eng'].new(0,py.nan,inplace=True)

  • df['eng'].reNan(0,py.nan,inplace=True)

MCQ
Advertisements

Solution

df[' eng'] .replace(0,py.nan,inplace=True) 

shaalaa.com
Descriptive Statistics
  Is there an error in this question or solution?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×