Skip to content

nsmallest doesn't work if the dtype is object but sort_values() does #4

@baziotis

Description

@baziotis

Example:

df = pd.read_csv('https://web.stanford.edu/class/archive/cs/cs109/cs109.1166/stuff/titanic.csv')
df['Name'].nsmallest(n=5)

Add another precondition to SortHead. It makes sense to solve issue #3 first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions