There's more...

If you look at the nlargest documentation, you will see that the keep parameter has three possible values, first, last, and False. From my knowledge of other pandas methods, keep=False should allow all ties to remain part of the result. Unfortunately, pandas raises an error when attempting to do this. I created an issue with pandas development team on GitHub to make this enhancement (http://bit.ly/2fGrCMa).

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

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