Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

Replace the string with NAN value

data['horsepower'].replace(to_replace='?' , value = np.nan,inplace = True)
data['horsepower'].unique()
Source by colab.research.google.com #
 
PREVIOUS NEXT
Tagged: #Replace #string #NAN
ADD COMMENT
Topic
Name
5+1 =