Skip to content

Chapter 7.3: pandas.DataFrame.sort() #59

@leostimpfle

Description

@leostimpfle

To sort the DataFrame along the column 'Incident Zip' one cannot use .sort() method anymore, but must use .sort_values():

requests[is_far][['Incident Zip', 'Descriptor', 'City']].sort_values(by='Incident Zip')

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions