Osio 1. Luku 11
single
Challenge: Exploratory Analysis of a Flights Dataset
Pyyhkäise näyttääksesi valikon
Tehtävä
Pyyhkäise aloittaaksesi koodauksen
You are given a flights dataset as a list of rows. Load it into a DataFrame using createDataFrame and complete the following steps, storing results in the specified variables:
- Count the total number of rows – store in
total_rows; - Find the airline with the most delayed flights (
Delay == 1) – store the airline code as a string inmost_delayed_airline; - Count the number of delayed flights (
Delay == 1) – store indelayed_count; - Find the top 3 busiest routes (unique
AirportFrom+AirportTopairs by flight count) – store as a list of tuples[(origin, destination, count), ...]intop_routes.
Print all results.
Ratkaisu
Oliko kaikki selvää?
Kiitos palautteestasi!
Osio 1. Luku 11
single
Kysy tekoälyä
Kysy tekoälyä
Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme