Informatics Practices
What happens if mode() returns multiple values for a column but other columns have a single mode ?
Python Pandas
3 Likes
Answer
When the mode() function in pandas returns multiple values for a column (meaning there are multiple modes), but other columns have a single mode, pandas fills the non-mode columns with NaN values.
Answered By
1 Like
Related Questions
To consider only the numeric values for calculation, what argument do you pass to statistics functions of Pandas ?
Is there one function that calculates much of descriptive statistics values ? Name it.
What is quantile and quartile ?
Name the function that lets you calculate different types of quantiles.