1. Sort by a Single Column - Deepstash

1. Sort by a Single Column

In this article, we’ll be using the flights dataset, which records the monthly passenger numbers from 1949 to 1960. For the purpose of this tutorial, we’ll select a random subset, as shown below.

When we want to sort the data by a single column, we specify the column name directly as the function call’s first parameter. As a side note, you may see me use head a lot, just to show you the top values without wasting the space.

8

35 reads

The idea is part of this collection:

Machine Learning With Google

Learn more about computerscience with this collection

Understanding machine learning models

Improving data analysis and decision-making

How Google uses logic in machine learning

Related collections

Read & Learn

20x Faster

without
deepstash

with
deepstash

with

deepstash

Personalized microlearning

100+ Learning Journeys

Access to 200,000+ ideas

Access to the mobile app

Unlimited idea saving

Unlimited history

Unlimited listening to ideas

Downloading & offline access

Supercharge your mind with one idea per day

Enter your email and spend 1 minute every day to learn something new.

Email

I agree to receive email updates