KnowledgeBoat Logo
|

Informatics Practices

What happens if mode() returns multiple values for a column but other columns have a single mode ?

Python Pandas

2 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