Determining the mode

The mode is the most common value of a Series and is found with .mode(). The following code determines the mode of the given Series:

Note that this has not returned a scalar value representing the mode, but a Series. This is because there can be more than one value for the mode of a Series. This is demonstrated with the following example:

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset