Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Creating a Pivot Table | Aggregating Data
Advanced Techniques in pandas
course content

Contenido del Curso

Advanced Techniques in pandas

Advanced Techniques in pandas

1. Getting Familiar With Indexing and Selecting Data
2. Dealing With Conditions
3. Extracting Data
4. Aggregating Data
5. Preprocessing Data

Creating a Pivot Table

Tarea

Your task here is to practice using pivot tables. Depending on the airline and the airport from which the flight started, calculate the number of delays and the minimum and maximum length of the flight. Follow the algorithm:

Create a pivot table:

  • Assign the columns 'Airline' and 'AirportFrom' to the index argument;
  • Assign the columns 'Delay' and 'Length' to the values argument (in this order);
  • Using the aggfunc argument, find the minimum and maximum of the 'Length', and count the number of values in the 'Delay' column.

Tarea

Your task here is to practice using pivot tables. Depending on the airline and the airport from which the flight started, calculate the number of delays and the minimum and maximum length of the flight. Follow the algorithm:

Create a pivot table:

  • Assign the columns 'Airline' and 'AirportFrom' to the index argument;
  • Assign the columns 'Delay' and 'Length' to the values argument (in this order);
  • Using the aggfunc argument, find the minimum and maximum of the 'Length', and count the number of values in the 'Delay' column.

Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones

¿Todo estuvo claro?

Sección 4. Capítulo 6
toggle bottom row

Creating a Pivot Table

Tarea

Your task here is to practice using pivot tables. Depending on the airline and the airport from which the flight started, calculate the number of delays and the minimum and maximum length of the flight. Follow the algorithm:

Create a pivot table:

  • Assign the columns 'Airline' and 'AirportFrom' to the index argument;
  • Assign the columns 'Delay' and 'Length' to the values argument (in this order);
  • Using the aggfunc argument, find the minimum and maximum of the 'Length', and count the number of values in the 'Delay' column.

Tarea

Your task here is to practice using pivot tables. Depending on the airline and the airport from which the flight started, calculate the number of delays and the minimum and maximum length of the flight. Follow the algorithm:

Create a pivot table:

  • Assign the columns 'Airline' and 'AirportFrom' to the index argument;
  • Assign the columns 'Delay' and 'Length' to the values argument (in this order);
  • Using the aggfunc argument, find the minimum and maximum of the 'Length', and count the number of values in the 'Delay' column.

Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones

¿Todo estuvo claro?

Sección 4. Capítulo 6
toggle bottom row

Creating a Pivot Table

Tarea

Your task here is to practice using pivot tables. Depending on the airline and the airport from which the flight started, calculate the number of delays and the minimum and maximum length of the flight. Follow the algorithm:

Create a pivot table:

  • Assign the columns 'Airline' and 'AirportFrom' to the index argument;
  • Assign the columns 'Delay' and 'Length' to the values argument (in this order);
  • Using the aggfunc argument, find the minimum and maximum of the 'Length', and count the number of values in the 'Delay' column.

Tarea

Your task here is to practice using pivot tables. Depending on the airline and the airport from which the flight started, calculate the number of delays and the minimum and maximum length of the flight. Follow the algorithm:

Create a pivot table:

  • Assign the columns 'Airline' and 'AirportFrom' to the index argument;
  • Assign the columns 'Delay' and 'Length' to the values argument (in this order);
  • Using the aggfunc argument, find the minimum and maximum of the 'Length', and count the number of values in the 'Delay' column.

Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones

¿Todo estuvo claro?

Tarea

Your task here is to practice using pivot tables. Depending on the airline and the airport from which the flight started, calculate the number of delays and the minimum and maximum length of the flight. Follow the algorithm:

Create a pivot table:

  • Assign the columns 'Airline' and 'AirportFrom' to the index argument;
  • Assign the columns 'Delay' and 'Length' to the values argument (in this order);
  • Using the aggfunc argument, find the minimum and maximum of the 'Length', and count the number of values in the 'Delay' column.

Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
Sección 4. Capítulo 6
Cambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
We're sorry to hear that something went wrong. What happened?
some-alt