I’m applying StandardScaler() to standardize my dataset. But the resultant standardized dataset has fewer rows than the original dataset. Why is this happening? I want to retain the original number of rows after standardization.
After applying the StandardScaler() function, I expected to get the same number of rows with the standardized values.
New contributor
Nikita Sinha is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.