Contenido del Curso
Advanced Techniques in pandas
Advanced Techniques in pandas
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 theindex
argument; - Assign the columns
'Delay'
and'Length'
to thevalues
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.
¡Gracias por tus comentarios!
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 theindex
argument; - Assign the columns
'Delay'
and'Length'
to thevalues
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.
¡Gracias por tus comentarios!
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 theindex
argument; - Assign the columns
'Delay'
and'Length'
to thevalues
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.
¡Gracias por tus comentarios!
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 theindex
argument; - Assign the columns
'Delay'
and'Length'
to thevalues
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.