Can I use the sklearn library's SimpleImputer method instead of dropna and fillna? I would like to know which is a more efficient way to fill the missing values.
@@gowthama757 both do the same thing actually, filling NaN values. Just the libraries are different(pandas vs sklearn) But, if you are building a complete project like data cleaning, data transformation and modelling everything using Sklearn pipeline then simpleimputer comes handy. So, u can use both interchangeably.
Can I use the sklearn library's SimpleImputer method instead of dropna and fillna? I would like to know which is a more efficient way to fill the missing values.
@@gowthama757 both do the same thing actually, filling NaN values. Just the libraries are different(pandas vs sklearn) But, if you are building a complete project like data cleaning, data transformation and modelling everything using Sklearn pipeline then simpleimputer comes handy. So, u can use both interchangeably.