Note
Go to the end to download the full example code or to run this example in your browser via JupyterLite or Binder.
Spatial join for flight data: Joining across multiple columns#
Joining tables may be difficult if one entry on one side does not have an exact match on the other side.
This problem becomes even more complex when multiple columns are significant for the join. For instance, this is the case for spatial joins on two columns, typically longitude and latitude.
Joiner() is a scikit-learn compatible transformer that enables
performing joins across multiple keys,
independently of the data type (numerical, string or mixed).
The following example uses US domestic flights data to illustrate how space and time information from a pool of tables are combined for machine learning.
Flight-delays data#
The goal is to predict flight delays. We have a pool of tables that we will use to improve our prediction.
The following tables are at our disposal:
The main table: flights dataset#
The
flightsdataset. It contains all US flights date, origin and destination airports and flight time. Here, we consider only flights from 2008.
import pandas as pd
from skrub.datasets import fetch_flight_delays
dataset = fetch_flight_delays()
seed = 1
flights = pd.read_csv(dataset.flights_path)
# Sampling for faster computation.
flights = flights.sample(5_000, random_state=seed, ignore_index=True)
flights.head()
| Year_Month_DayofMonth | DayOfWeek | CRSDepTime | CRSArrTime | UniqueCarrier | FlightNum | TailNum | CRSElapsedTime | ArrDelay | Origin | Dest | Distance | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 2008-01-13 | 7 | 1900-01-01 18:35:00 | 1900-01-01 20:08:00 | CO | 150 | N17244 | 213. | 1.00 | IAH | ONT | 1.33e+03 |
| 1 | 2008-02-21 | 4 | 1900-01-01 14:30:00 | 1900-01-01 16:06:00 | NW | 807 | N590NW | 216. | 2.00 | MSP | SEA | 1.40e+03 |
| 2 | 2008-03-26 | 3 | 1900-01-01 07:00:00 | 1900-01-01 09:38:00 | US | 455 | N627AW | 98.0 | -1.00 | PHX | SLC | 507. |
| 3 | 2008-01-03 | 4 | 1900-01-01 08:40:00 | 1900-01-01 12:03:00 | CO | 287 | N21723 | 383. | 46.0 | EWR | SNA | 2.43e+03 |
| 4 | 2008-01-31 | 4 | 1900-01-01 12:50:00 | 1900-01-01 14:10:00 | MQ | 3,157 | N848AE | 80.0 | -14.0 | SJC | SNA | 342. |
Year_Month_DayofMonth
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
Most frequent values
2008-01-13
2008-02-21
2008-03-26
2008-01-03
2008-01-31
['2008-01-13', '2008-02-21', '2008-03-26', '2008-01-03', '2008-01-31']
DayOfWeek
Int64DType- Null values
- 0 (0.0%)
- Unique values
- 3 (60.0%)
- Mean ± Std
- 4.40 ± 1.52
- Median ± IQR
- 4 ± 0
- Min | Max
- 3 | 7
CRSDepTime
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
Most frequent values
1900-01-01 18:35:00
1900-01-01 14:30:00
1900-01-01 07:00:00
1900-01-01 08:40:00
1900-01-01 12:50:00
['1900-01-01 18:35:00', '1900-01-01 14:30:00', '1900-01-01 07:00:00', '1900-01-01 08:40:00', '1900-01-01 12:50:00']
CRSArrTime
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
Most frequent values
1900-01-01 20:08:00
1900-01-01 16:06:00
1900-01-01 09:38:00
1900-01-01 12:03:00
1900-01-01 14:10:00
['1900-01-01 20:08:00', '1900-01-01 16:06:00', '1900-01-01 09:38:00', '1900-01-01 12:03:00', '1900-01-01 14:10:00']
UniqueCarrier
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 4 (80.0%)
Most frequent values
CO
NW
US
MQ
['CO', 'NW', 'US', 'MQ']
FlightNum
Int64DType- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
- Mean ± Std
- 971. ± 1.25e+03
- Median ± IQR
- 455 ± 520
- Min | Max
- 150 | 3,157
TailNum
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
Most frequent values
N17244
N590NW
N627AW
N21723
N848AE
['N17244', 'N590NW', 'N627AW', 'N21723', 'N848AE']
CRSElapsedTime
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
- Mean ± Std
- 198. ± 121.
- Median ± IQR
- 213. ± 118.
- Min | Max
- 80.0 | 383.
ArrDelay
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
- Mean ± Std
- 6.80 ± 22.8
- Median ± IQR
- 1.00 ± 3.00
- Min | Max
- -14.0 | 46.0
Origin
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
Most frequent values
IAH
MSP
PHX
EWR
SJC
['IAH', 'MSP', 'PHX', 'EWR', 'SJC']
Dest
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 4 (80.0%)
Most frequent values
SNA
ONT
SEA
SLC
['SNA', 'ONT', 'SEA', 'SLC']
Distance
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
- Mean ± Std
- 1.20e+03 ± 836.
- Median ± IQR
- 1.33e+03 ± 892.
- Min | Max
- 342. | 2.43e+03
No columns match the selected filter: . You can change the column filter in the dropdown menu above.
|
Column
|
Column name
|
dtype
|
Is sorted
|
Null values
|
Unique values
|
Mean
|
Std
|
Min
|
Median
|
Max
|
|---|---|---|---|---|---|---|---|---|---|---|
| 0 | Year_Month_DayofMonth | StringDtype | False | 0 (0.0%) | 5 (100.0%) | |||||
| 1 | DayOfWeek | Int64DType | False | 0 (0.0%) | 3 (60.0%) | 4.40 | 1.52 | 3 | 4 | 7 |
| 2 | CRSDepTime | StringDtype | False | 0 (0.0%) | 5 (100.0%) | |||||
| 3 | CRSArrTime | StringDtype | False | 0 (0.0%) | 5 (100.0%) | |||||
| 4 | UniqueCarrier | StringDtype | False | 0 (0.0%) | 4 (80.0%) | |||||
| 5 | FlightNum | Int64DType | False | 0 (0.0%) | 5 (100.0%) | 971. | 1.25e+03 | 150 | 455 | 3,157 |
| 6 | TailNum | StringDtype | False | 0 (0.0%) | 5 (100.0%) | |||||
| 7 | CRSElapsedTime | Float64DType | False | 0 (0.0%) | 5 (100.0%) | 198. | 121. | 80.0 | 213. | 383. |
| 8 | ArrDelay | Float64DType | False | 0 (0.0%) | 5 (100.0%) | 6.80 | 22.8 | -14.0 | 1.00 | 46.0 |
| 9 | Origin | StringDtype | False | 0 (0.0%) | 5 (100.0%) | |||||
| 10 | Dest | StringDtype | True | 0 (0.0%) | 4 (80.0%) | |||||
| 11 | Distance | Float64DType | False | 0 (0.0%) | 5 (100.0%) | 1.20e+03 | 836. | 342. | 1.33e+03 | 2.43e+03 |
No columns match the selected filter: . You can change the column filter in the dropdown menu above.
Year_Month_DayofMonth
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
Most frequent values
2008-01-13
2008-02-21
2008-03-26
2008-01-03
2008-01-31
['2008-01-13', '2008-02-21', '2008-03-26', '2008-01-03', '2008-01-31']
DayOfWeek
Int64DType- Null values
- 0 (0.0%)
- Unique values
- 3 (60.0%)
- Mean ± Std
- 4.40 ± 1.52
- Median ± IQR
- 4 ± 0
- Min | Max
- 3 | 7
CRSDepTime
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
Most frequent values
1900-01-01 18:35:00
1900-01-01 14:30:00
1900-01-01 07:00:00
1900-01-01 08:40:00
1900-01-01 12:50:00
['1900-01-01 18:35:00', '1900-01-01 14:30:00', '1900-01-01 07:00:00', '1900-01-01 08:40:00', '1900-01-01 12:50:00']
CRSArrTime
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
Most frequent values
1900-01-01 20:08:00
1900-01-01 16:06:00
1900-01-01 09:38:00
1900-01-01 12:03:00
1900-01-01 14:10:00
['1900-01-01 20:08:00', '1900-01-01 16:06:00', '1900-01-01 09:38:00', '1900-01-01 12:03:00', '1900-01-01 14:10:00']
UniqueCarrier
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 4 (80.0%)
Most frequent values
CO
NW
US
MQ
['CO', 'NW', 'US', 'MQ']
FlightNum
Int64DType- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
- Mean ± Std
- 971. ± 1.25e+03
- Median ± IQR
- 455 ± 520
- Min | Max
- 150 | 3,157
TailNum
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
Most frequent values
N17244
N590NW
N627AW
N21723
N848AE
['N17244', 'N590NW', 'N627AW', 'N21723', 'N848AE']
CRSElapsedTime
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
- Mean ± Std
- 198. ± 121.
- Median ± IQR
- 213. ± 118.
- Min | Max
- 80.0 | 383.
ArrDelay
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
- Mean ± Std
- 6.80 ± 22.8
- Median ± IQR
- 1.00 ± 3.00
- Min | Max
- -14.0 | 46.0
Origin
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
Most frequent values
IAH
MSP
PHX
EWR
SJC
['IAH', 'MSP', 'PHX', 'EWR', 'SJC']
Dest
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 4 (80.0%)
Most frequent values
SNA
ONT
SEA
SLC
['SNA', 'ONT', 'SEA', 'SLC']
Distance
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
- Mean ± Std
- 1.20e+03 ± 836.
- Median ± IQR
- 1.33e+03 ± 892.
- Min | Max
- 342. | 2.43e+03
No columns match the selected filter: . You can change the column filter in the dropdown menu above.
| Column 1 | Column 2 | Cramér's V | Pearson's Correlation |
|---|---|---|---|
| Year_Month_DayofMonth | DayOfWeek | 1.00 | |
| Dest | Distance | 1.00 | |
| Origin | Distance | 1.00 | |
| Origin | Dest | 1.00 | |
| ArrDelay | Dest | 1.00 | |
| ArrDelay | Distance | 1.00 | 0.915 |
| CRSElapsedTime | Distance | 1.00 | 0.998 |
| CRSElapsedTime | Dest | 1.00 | |
| CRSElapsedTime | Origin | 1.00 | |
| ArrDelay | Origin | 1.00 | |
| TailNum | Distance | 1.00 | |
| TailNum | Dest | 1.00 | |
| TailNum | Origin | 1.00 | |
| TailNum | ArrDelay | 1.00 | |
| TailNum | CRSElapsedTime | 1.00 | |
| FlightNum | Distance | 1.00 | -0.601 |
| FlightNum | Dest | 1.00 | |
| CRSElapsedTime | ArrDelay | 1.00 | 0.932 |
| FlightNum | ArrDelay | 1.00 | -0.551 |
| FlightNum | CRSElapsedTime | 1.00 | -0.576 |
| FlightNum | TailNum | 1.00 | |
| UniqueCarrier | Distance | 1.00 | |
| UniqueCarrier | Origin | 1.00 | |
| UniqueCarrier | ArrDelay | 1.00 | |
| UniqueCarrier | CRSElapsedTime | 1.00 | |
| UniqueCarrier | TailNum | 1.00 | |
| CRSArrTime | Origin | 1.00 | |
| UniqueCarrier | FlightNum | 1.00 | |
| CRSArrTime | Distance | 1.00 | |
| CRSArrTime | Dest | 1.00 | |
| CRSArrTime | CRSElapsedTime | 1.00 | |
| CRSArrTime | ArrDelay | 1.00 | |
| CRSArrTime | TailNum | 1.00 | |
| FlightNum | Origin | 1.00 | |
| DayOfWeek | CRSElapsedTime | 1.00 | 0.197 |
| CRSArrTime | FlightNum | 1.00 | |
| CRSDepTime | Distance | 1.00 | |
| CRSArrTime | UniqueCarrier | 1.00 | |
| CRSDepTime | Origin | 1.00 | |
| CRSDepTime | ArrDelay | 1.00 | |
| CRSDepTime | CRSElapsedTime | 1.00 | |
| CRSDepTime | Dest | 1.00 | |
| CRSDepTime | FlightNum | 1.00 | |
| CRSDepTime | UniqueCarrier | 1.00 | |
| CRSDepTime | CRSArrTime | 1.00 | |
| DayOfWeek | Distance | 1.00 | 0.215 |
| DayOfWeek | Dest | 1.00 | |
| DayOfWeek | Origin | 1.00 | |
| DayOfWeek | ArrDelay | 1.00 | -0.0693 |
| CRSDepTime | TailNum | 1.00 | |
| Year_Month_DayofMonth | FlightNum | 1.00 | |
| DayOfWeek | TailNum | 1.00 | |
| DayOfWeek | CRSArrTime | 1.00 | |
| DayOfWeek | FlightNum | 1.00 | -0.258 |
| Year_Month_DayofMonth | Dest | 1.00 | |
| Year_Month_DayofMonth | Distance | 1.00 | |
| Year_Month_DayofMonth | Origin | 1.00 | |
| DayOfWeek | CRSDepTime | 1.00 | |
| Year_Month_DayofMonth | CRSArrTime | 1.00 | |
| Year_Month_DayofMonth | ArrDelay | 1.00 | |
| Year_Month_DayofMonth | TailNum | 1.00 | |
| Year_Month_DayofMonth | CRSElapsedTime | 1.00 | |
| Year_Month_DayofMonth | CRSDepTime | 1.00 | |
| Year_Month_DayofMonth | UniqueCarrier | 1.00 | |
| UniqueCarrier | Dest | 0.866 | |
| DayOfWeek | UniqueCarrier | 0.816 |
Please enable javascript
The skrub table reports need javascript to display correctly. If you are displaying a report in a Jupyter notebook and you see this message, you may need to re-execute the cell or to trust the notebook (button on the top right or "File > Trust notebook").
Let us see the arrival delay of the flights in the dataset:
import matplotlib.pyplot as plt
import seaborn as sns
sns.set_theme(style="ticks")
ax = sns.histplot(data=flights, x="ArrDelay")
ax.set_yscale("log")
plt.show()

Interesting, most delays are relatively short (<100 min), but there are some very long ones.
Airport data: an auxiliary table from the same database#
The
airportsdataset, with information such as their name and location (longitude, latitude).
| iata | airport | city | state | country | lat | long | |
|---|---|---|---|---|---|---|---|
| 0 | 00M | Thigpen | Bay Springs | MS | USA | 32.0 | -89.2 |
| 1 | 00R | Livingston Municipal | Livingston | TX | USA | 30.7 | -95.0 |
| 2 | 00V | Meadow Lake | Colorado Springs | CO | USA | 38.9 | -105. |
| 3 | 01G | Perry-Warsaw | Perry | NY | USA | 42.7 | -78.1 |
| 4 | 01J | Hilliard Airpark | Hilliard | FL | USA | 30.7 | -81.9 |
iata
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
Most frequent values
00M
00R
00V
01G
01J
['00M', '00R', '00V', '01G', '01J']
airport
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
Most frequent values
Thigpen
Livingston Municipal
Meadow Lake
Perry-Warsaw
Hilliard Airpark
['Thigpen ', 'Livingston Municipal', 'Meadow Lake', 'Perry-Warsaw', 'Hilliard Airpark']
city
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
Most frequent values
Bay Springs
Livingston
Colorado Springs
Perry
Hilliard
['Bay Springs', 'Livingston', 'Colorado Springs', 'Perry', 'Hilliard']
state
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
Most frequent values
MS
TX
CO
NY
FL
['MS', 'TX', 'CO', 'NY', 'FL']
country
StringDtype- Null values
- 0 (0.0%)
USA
lat
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
- Mean ± Std
- 35.0 ± 5.52
- Median ± IQR
- 32.0 ± 8.26
- Min | Max
- 30.7 | 42.7
long
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
- Mean ± Std
- -89.8 ± 10.6
- Median ± IQR
- -89.2 ± 13.1
- Min | Max
- -105. | -78.1
No columns match the selected filter: . You can change the column filter in the dropdown menu above.
|
Column
|
Column name
|
dtype
|
Is sorted
|
Null values
|
Unique values
|
Mean
|
Std
|
Min
|
Median
|
Max
|
|---|---|---|---|---|---|---|---|---|---|---|
| 0 | iata | StringDtype | True | 0 (0.0%) | 5 (100.0%) | |||||
| 1 | airport | StringDtype | False | 0 (0.0%) | 5 (100.0%) | |||||
| 2 | city | StringDtype | False | 0 (0.0%) | 5 (100.0%) | |||||
| 3 | state | StringDtype | False | 0 (0.0%) | 5 (100.0%) | |||||
| 4 | country | StringDtype | True | 0 (0.0%) | 1 (20.0%) | |||||
| 5 | lat | Float64DType | False | 0 (0.0%) | 5 (100.0%) | 35.0 | 5.52 | 30.7 | 32.0 | 42.7 |
| 6 | long | Float64DType | False | 0 (0.0%) | 5 (100.0%) | -89.8 | 10.6 | -105. | -89.2 | -78.1 |
No columns match the selected filter: . You can change the column filter in the dropdown menu above.
iata
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
Most frequent values
00M
00R
00V
01G
01J
['00M', '00R', '00V', '01G', '01J']
airport
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
Most frequent values
Thigpen
Livingston Municipal
Meadow Lake
Perry-Warsaw
Hilliard Airpark
['Thigpen ', 'Livingston Municipal', 'Meadow Lake', 'Perry-Warsaw', 'Hilliard Airpark']
city
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
Most frequent values
Bay Springs
Livingston
Colorado Springs
Perry
Hilliard
['Bay Springs', 'Livingston', 'Colorado Springs', 'Perry', 'Hilliard']
state
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
Most frequent values
MS
TX
CO
NY
FL
['MS', 'TX', 'CO', 'NY', 'FL']
country
StringDtype- Null values
- 0 (0.0%)
USA
lat
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
- Mean ± Std
- 35.0 ± 5.52
- Median ± IQR
- 32.0 ± 8.26
- Min | Max
- 30.7 | 42.7
long
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
- Mean ± Std
- -89.8 ± 10.6
- Median ± IQR
- -89.2 ± 13.1
- Min | Max
- -105. | -78.1
No columns match the selected filter: . You can change the column filter in the dropdown menu above.
| Column 1 | Column 2 | Cramér's V | Pearson's Correlation |
|---|---|---|---|
| lat | long | 1.00 | 0.0832 |
| state | lat | 1.00 | |
| state | long | 1.00 | |
| city | lat | 1.00 | |
| city | long | 1.00 | |
| iata | state | 1.00 | |
| iata | city | 1.00 | |
| airport | long | 1.00 | |
| city | state | 1.00 | |
| airport | lat | 1.00 | |
| iata | long | 1.00 | |
| airport | city | 1.00 | |
| airport | state | 1.00 | |
| iata | airport | 1.00 | |
| iata | lat | 1.00 | |
| country | long | 0.00 | |
| country | lat | 0.00 | |
| airport | country | 0.00 | |
| city | country | 0.00 | |
| state | country | 0.00 | |
| iata | country | 0.00 |
Please enable javascript
The skrub table reports need javascript to display correctly. If you are displaying a report in a Jupyter notebook and you see this message, you may need to re-execute the cell or to trust the notebook (button on the top right or "File > Trust notebook").
Weather data: auxiliary tables from external sources#
The
weathertable. Weather details by measurement station. Both tables are from the Global Historical Climatology Network. Here, we consider only weather measurements from 2008.
weather = pd.read_csv(dataset.weather_path)
# Sampling for faster computation.
weather = weather.sample(10_000, random_state=seed, ignore_index=True)
weather.head()
| ID | YEAR/MONTH/DAY | TMAX | PRCP | SNOW | |
|---|---|---|---|---|---|
| 0 | RPM00098325 | 2008-08-20 | 290. | 856. | |
| 1 | ASN00023820 | 2008-07-20 | 28.0 | ||
| 2 | MXN00024056 | 2008-04-13 | 250. | 0.00 | |
| 3 | GME00126742 | 2008-11-06 | 116. | 4.00 | |
| 4 | ASN00074201 | 2008-04-12 | 0.00 |
ID
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
Most frequent values
RPM00098325
ASN00023820
MXN00024056
GME00126742
ASN00074201
['RPM00098325', 'ASN00023820', 'MXN00024056', 'GME00126742', 'ASN00074201']
YEAR/MONTH/DAY
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
Most frequent values
2008-08-20
2008-07-20
2008-04-13
2008-11-06
2008-04-12
['2008-08-20', '2008-07-20', '2008-04-13', '2008-11-06', '2008-04-12']
TMAX
Float64DType- Null values
- 2 (40.0%)
- Unique values
- 3 (60.0%)
- Mean ± Std
- 219. ± 91.1
- Median ± IQR
- 250. ± 174.
- Min | Max
- 116. | 290.
PRCP
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 4 (80.0%)
- Mean ± Std
- 178. ± 379.
- Median ± IQR
- 4.00 ± 28.0
- Min | Max
- 0.00 | 856.
SNOW
Float64DType- Null values
- 5 (100.0%)
No columns match the selected filter: . You can change the column filter in the dropdown menu above.
|
Column
|
Column name
|
dtype
|
Is sorted
|
Null values
|
Unique values
|
Mean
|
Std
|
Min
|
Median
|
Max
|
|---|---|---|---|---|---|---|---|---|---|---|
| 0 | ID | StringDtype | False | 0 (0.0%) | 5 (100.0%) | |||||
| 1 | YEAR/MONTH/DAY | StringDtype | False | 0 (0.0%) | 5 (100.0%) | |||||
| 2 | TMAX | Float64DType | True | 2 (40.0%) | 3 (60.0%) | 219. | 91.1 | 116. | 250. | 290. |
| 3 | PRCP | Float64DType | False | 0 (0.0%) | 4 (80.0%) | 178. | 379. | 0.00 | 4.00 | 856. |
| 4 | SNOW | Float64DType | False | 5 (100.0%) |
No columns match the selected filter: . You can change the column filter in the dropdown menu above.
ID
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
Most frequent values
RPM00098325
ASN00023820
MXN00024056
GME00126742
ASN00074201
['RPM00098325', 'ASN00023820', 'MXN00024056', 'GME00126742', 'ASN00074201']
YEAR/MONTH/DAY
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
Most frequent values
2008-08-20
2008-07-20
2008-04-13
2008-11-06
2008-04-12
['2008-08-20', '2008-07-20', '2008-04-13', '2008-11-06', '2008-04-12']
TMAX
Float64DType- Null values
- 2 (40.0%)
- Unique values
- 3 (60.0%)
- Mean ± Std
- 219. ± 91.1
- Median ± IQR
- 250. ± 174.
- Min | Max
- 116. | 290.
PRCP
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 4 (80.0%)
- Mean ± Std
- 178. ± 379.
- Median ± IQR
- 4.00 ± 28.0
- Min | Max
- 0.00 | 856.
SNOW
Float64DType- Null values
- 5 (100.0%)
No columns match the selected filter: . You can change the column filter in the dropdown menu above.
| Column 1 | Column 2 | Cramér's V | Pearson's Correlation |
|---|---|---|---|
| YEAR/MONTH/DAY | PRCP | 1.00 | |
| YEAR/MONTH/DAY | TMAX | 1.00 | |
| ID | YEAR/MONTH/DAY | 1.00 | |
| ID | PRCP | 1.00 | |
| ID | TMAX | 1.00 | |
| TMAX | PRCP | 0.866 | 0.675 |
| TMAX | SNOW | 0.00 | |
| PRCP | SNOW | 0.00 | |
| YEAR/MONTH/DAY | SNOW | 0.00 | |
| ID | SNOW | 0.00 |
Please enable javascript
The skrub table reports need javascript to display correctly. If you are displaying a report in a Jupyter notebook and you see this message, you may need to re-execute the cell or to trust the notebook (button on the top right or "File > Trust notebook").
The
stationsdataset. Provides location of all the weather measurement stations in the US.
| ID | LATITUDE | LONGITUDE | ELEVATION | STATE | NAME | GSN FLAG | HCN/CRN FLAG | WMO ID | |
|---|---|---|---|---|---|---|---|---|---|
| 0 | ACW00011604 | 17.1 | -61.8 | 10.1 | ST JOHNS COOLIDGE FLD | ||||
| 1 | ACW00011647 | 17.1 | -61.8 | 19.2 | ST JOHNS | ||||
| 2 | AE000041196 | 25.3 | 55.5 | 34.0 | SHARJAH INTER. AIRP | GSN | 4.12e+04 | ||
| 3 | AEM00041194 | 25.3 | 55.4 | 10.4 | DUBAI INTL | 4.12e+04 | |||
| 4 | AEM00041217 | 24.4 | 54.7 | 26.8 | ABU DHABI INTL | 4.12e+04 |
ID
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
Most frequent values
ACW00011604
ACW00011647
AE000041196
AEM00041194
AEM00041217
['ACW00011604', 'ACW00011647', 'AE000041196', 'AEM00041194', 'AEM00041217']
LATITUDE
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
- Mean ± Std
- 21.9 ± 4.33
- Median ± IQR
- 24.4 ± 8.12
- Min | Max
- 17.1 | 25.3
LONGITUDE
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 4 (80.0%)
- Mean ± Std
- 8.39 ± 64.1
- Median ± IQR
- 54.7 ± 117.
- Min | Max
- -61.8 | 55.5
ELEVATION
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
- Mean ± Std
- 20.1 ± 10.4
- Median ± IQR
- 19.2 ± 16.4
- Min | Max
- 10.1 | 34.0
STATE
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
Most frequent values
ST JOHNS COOLIDGE FLD
ST JOHNS
SHARJAH INTER. AIRP
DUBAI INTL
ABU DHABI INTL
['ST JOHNS COOLIDGE FLD', 'ST JOHNS', 'SHARJAH INTER. AIRP', 'DUBAI INTL', 'ABU DHABI INTL']
NAME
StringDtype- Null values
- 5 (100.0%)
GSN FLAG
StringDtype- Null values
- 4 (80.0%)
GSN
HCN/CRN FLAG
Float64DType- Null values
- 2 (40.0%)
- Unique values
- 3 (60.0%)
- Mean ± Std
- 4.12e+04 ± 12.7
- Median ± IQR
- 4.12e+04 ± 23.0
- Min | Max
- 4.12e+04 | 4.12e+04
WMO ID
Float64DType- Null values
- 5 (100.0%)
No columns match the selected filter: . You can change the column filter in the dropdown menu above.
|
Column
|
Column name
|
dtype
|
Is sorted
|
Null values
|
Unique values
|
Mean
|
Std
|
Min
|
Median
|
Max
|
|---|---|---|---|---|---|---|---|---|---|---|
| 0 | ID | StringDtype | True | 0 (0.0%) | 5 (100.0%) | |||||
| 1 | LATITUDE | Float64DType | False | 0 (0.0%) | 5 (100.0%) | 21.9 | 4.33 | 17.1 | 24.4 | 25.3 |
| 2 | LONGITUDE | Float64DType | False | 0 (0.0%) | 4 (80.0%) | 8.39 | 64.1 | -61.8 | 54.7 | 55.5 |
| 3 | ELEVATION | Float64DType | False | 0 (0.0%) | 5 (100.0%) | 20.1 | 10.4 | 10.1 | 19.2 | 34.0 |
| 4 | STATE | StringDtype | True | 0 (0.0%) | 5 (100.0%) | |||||
| 5 | NAME | StringDtype | False | 5 (100.0%) | ||||||
| 6 | GSN FLAG | StringDtype | True | 4 (80.0%) | 1 (20.0%) | |||||
| 7 | HCN/CRN FLAG | Float64DType | False | 2 (40.0%) | 3 (60.0%) | 4.12e+04 | 12.7 | 4.12e+04 | 4.12e+04 | 4.12e+04 |
| 8 | WMO ID | Float64DType | False | 5 (100.0%) |
No columns match the selected filter: . You can change the column filter in the dropdown menu above.
ID
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
Most frequent values
ACW00011604
ACW00011647
AE000041196
AEM00041194
AEM00041217
['ACW00011604', 'ACW00011647', 'AE000041196', 'AEM00041194', 'AEM00041217']
LATITUDE
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
- Mean ± Std
- 21.9 ± 4.33
- Median ± IQR
- 24.4 ± 8.12
- Min | Max
- 17.1 | 25.3
LONGITUDE
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 4 (80.0%)
- Mean ± Std
- 8.39 ± 64.1
- Median ± IQR
- 54.7 ± 117.
- Min | Max
- -61.8 | 55.5
ELEVATION
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
- Mean ± Std
- 20.1 ± 10.4
- Median ± IQR
- 19.2 ± 16.4
- Min | Max
- 10.1 | 34.0
STATE
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
Most frequent values
ST JOHNS COOLIDGE FLD
ST JOHNS
SHARJAH INTER. AIRP
DUBAI INTL
ABU DHABI INTL
['ST JOHNS COOLIDGE FLD', 'ST JOHNS', 'SHARJAH INTER. AIRP', 'DUBAI INTL', 'ABU DHABI INTL']
NAME
StringDtype- Null values
- 5 (100.0%)
GSN FLAG
StringDtype- Null values
- 4 (80.0%)
GSN
HCN/CRN FLAG
Float64DType- Null values
- 2 (40.0%)
- Unique values
- 3 (60.0%)
- Mean ± Std
- 4.12e+04 ± 12.7
- Median ± IQR
- 4.12e+04 ± 23.0
- Min | Max
- 4.12e+04 | 4.12e+04
WMO ID
Float64DType- Null values
- 5 (100.0%)
No columns match the selected filter: . You can change the column filter in the dropdown menu above.
| Column 1 | Column 2 | Cramér's V | Pearson's Correlation |
|---|---|---|---|
| GSN FLAG | HCN/CRN FLAG | 1.00 | |
| ELEVATION | HCN/CRN FLAG | 1.00 | 0.295 |
| STATE | GSN FLAG | 1.00 | |
| STATE | HCN/CRN FLAG | 1.00 | |
| ID | LONGITUDE | 1.00 | |
| ID | LATITUDE | 1.00 | |
| ID | ELEVATION | 1.00 | |
| LONGITUDE | STATE | 1.00 | |
| LONGITUDE | HCN/CRN FLAG | 1.00 | -0.970 |
| LONGITUDE | GSN FLAG | 1.00 | |
| ELEVATION | STATE | 1.00 | |
| ELEVATION | GSN FLAG | 1.00 | |
| ID | HCN/CRN FLAG | 1.00 | |
| ID | GSN FLAG | 1.00 | |
| LATITUDE | ELEVATION | 1.00 | 0.467 |
| LATITUDE | LONGITUDE | 1.00 | 0.997 |
| LATITUDE | STATE | 1.00 | |
| LATITUDE | GSN FLAG | 1.00 | |
| LATITUDE | HCN/CRN FLAG | 1.00 | -0.988 |
| LONGITUDE | ELEVATION | 1.00 | 0.478 |
| ID | STATE | 1.00 | |
| NAME | WMO ID | 0.00 | |
| HCN/CRN FLAG | WMO ID | 0.00 | |
| GSN FLAG | WMO ID | 0.00 | |
| STATE | WMO ID | 0.00 | |
| NAME | GSN FLAG | 0.00 | |
| STATE | NAME | 0.00 | |
| ELEVATION | WMO ID | 0.00 | |
| LONGITUDE | NAME | 0.00 | |
| LONGITUDE | WMO ID | 0.00 | |
| ELEVATION | NAME | 0.00 | |
| NAME | HCN/CRN FLAG | 0.00 | |
| LATITUDE | NAME | 0.00 | |
| LATITUDE | WMO ID | 0.00 | |
| ID | NAME | 0.00 | |
| ID | WMO ID | 0.00 |
Please enable javascript
The skrub table reports need javascript to display correctly. If you are displaying a report in a Jupyter notebook and you see this message, you may need to re-execute the cell or to trust the notebook (button on the top right or "File > Trust notebook").
Joining: feature augmentation across tables#
First we join the stations with weather on the ID (exact join):
| ID | LATITUDE | LONGITUDE | ELEVATION | STATE | NAME | GSN FLAG | HCN/CRN FLAG | WMO ID | YEAR/MONTH/DAY | TMAX | PRCP | SNOW | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | AGE00147708 | 36.7 | 4.05 | 222. | TIZI OUZOU | 6.04e+04 | 2008-04-17 | 225. | 0.00 | ||||
| 1 | AGM00060403 | 36.5 | 7.47 | 228. | GUELMA | 6.04e+04 | 2008-09-17 | 324. | 0.00 | ||||
| 2 | AGM00060403 | 36.5 | 7.47 | 228. | GUELMA | 6.04e+04 | 2008-04-11 | 245. | 0.00 | ||||
| 3 | AGM00060419 | 36.3 | 6.62 | 690. | MOHAMED BOUDIAF INTL | 6.04e+04 | 2008-06-30 | 340. | 0.00 | ||||
| 4 | AGM00060430 | 36.3 | 2.23 | 721. | MILIANA | 6.04e+04 | 2008-08-17 | 323. | 0.00 |
ID
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 4 (80.0%)
Most frequent values
AGM00060403
AGE00147708
AGM00060419
AGM00060430
['AGM00060403', 'AGE00147708', 'AGM00060419', 'AGM00060430']
LATITUDE
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 4 (80.0%)
- Mean ± Std
- 36.4 ± 0.178
- Median ± IQR
- 36.5 ± 0.167
- Min | Max
- 36.3 | 36.7
LONGITUDE
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 4 (80.0%)
- Mean ± Std
- 5.57 ± 2.33
- Median ± IQR
- 6.62 ± 3.42
- Min | Max
- 2.23 | 7.47
ELEVATION
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 4 (80.0%)
- Mean ± Std
- 418. ± 263.
- Median ± IQR
- 228. ± 462.
- Min | Max
- 222. | 721.
STATE
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 4 (80.0%)
Most frequent values
GUELMA
TIZI OUZOU
MOHAMED BOUDIAF INTL
MILIANA
['GUELMA', 'TIZI OUZOU', 'MOHAMED BOUDIAF INTL', 'MILIANA']
NAME
StringDtype- Null values
- 5 (100.0%)
GSN FLAG
StringDtype- Null values
- 5 (100.0%)
HCN/CRN FLAG
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 4 (80.0%)
- Mean ± Std
- 6.04e+04 ± 14.2
- Median ± IQR
- 6.04e+04 ± 16.0
- Min | Max
- 6.04e+04 | 6.04e+04
WMO ID
Float64DType- Null values
- 5 (100.0%)
YEAR/MONTH/DAY
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
Most frequent values
2008-04-17
2008-09-17
2008-04-11
2008-06-30
2008-08-17
['2008-04-17', '2008-09-17', '2008-04-11', '2008-06-30', '2008-08-17']
TMAX
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
- Mean ± Std
- 291. ± 52.4
- Median ± IQR
- 323. ± 79.0
- Min | Max
- 225. | 340.
PRCP
Float64DType- Null values
- 0 (0.0%)
0.0
SNOW
Float64DType- Null values
- 5 (100.0%)
No columns match the selected filter: . You can change the column filter in the dropdown menu above.
|
Column
|
Column name
|
dtype
|
Is sorted
|
Null values
|
Unique values
|
Mean
|
Std
|
Min
|
Median
|
Max
|
|---|---|---|---|---|---|---|---|---|---|---|
| 0 | ID | StringDtype | True | 0 (0.0%) | 4 (80.0%) | |||||
| 1 | LATITUDE | Float64DType | False | 0 (0.0%) | 4 (80.0%) | 36.4 | 0.178 | 36.3 | 36.5 | 36.7 |
| 2 | LONGITUDE | Float64DType | False | 0 (0.0%) | 4 (80.0%) | 5.57 | 2.33 | 2.23 | 6.62 | 7.47 |
| 3 | ELEVATION | Float64DType | True | 0 (0.0%) | 4 (80.0%) | 418. | 263. | 222. | 228. | 721. |
| 4 | STATE | StringDtype | False | 0 (0.0%) | 4 (80.0%) | |||||
| 5 | NAME | StringDtype | False | 5 (100.0%) | ||||||
| 6 | GSN FLAG | StringDtype | False | 5 (100.0%) | ||||||
| 7 | HCN/CRN FLAG | Float64DType | True | 0 (0.0%) | 4 (80.0%) | 6.04e+04 | 14.2 | 6.04e+04 | 6.04e+04 | 6.04e+04 |
| 8 | WMO ID | Float64DType | False | 5 (100.0%) | ||||||
| 9 | YEAR/MONTH/DAY | StringDtype | False | 0 (0.0%) | 5 (100.0%) | |||||
| 10 | TMAX | Float64DType | False | 0 (0.0%) | 5 (100.0%) | 291. | 52.4 | 225. | 323. | 340. |
| 11 | PRCP | Float64DType | True | 0 (0.0%) | 1 (20.0%) | 0.00 | 0.00 | |||
| 12 | SNOW | Float64DType | False | 5 (100.0%) |
No columns match the selected filter: . You can change the column filter in the dropdown menu above.
ID
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 4 (80.0%)
Most frequent values
AGM00060403
AGE00147708
AGM00060419
AGM00060430
['AGM00060403', 'AGE00147708', 'AGM00060419', 'AGM00060430']
LATITUDE
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 4 (80.0%)
- Mean ± Std
- 36.4 ± 0.178
- Median ± IQR
- 36.5 ± 0.167
- Min | Max
- 36.3 | 36.7
LONGITUDE
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 4 (80.0%)
- Mean ± Std
- 5.57 ± 2.33
- Median ± IQR
- 6.62 ± 3.42
- Min | Max
- 2.23 | 7.47
ELEVATION
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 4 (80.0%)
- Mean ± Std
- 418. ± 263.
- Median ± IQR
- 228. ± 462.
- Min | Max
- 222. | 721.
STATE
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 4 (80.0%)
Most frequent values
GUELMA
TIZI OUZOU
MOHAMED BOUDIAF INTL
MILIANA
['GUELMA', 'TIZI OUZOU', 'MOHAMED BOUDIAF INTL', 'MILIANA']
NAME
StringDtype- Null values
- 5 (100.0%)
GSN FLAG
StringDtype- Null values
- 5 (100.0%)
HCN/CRN FLAG
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 4 (80.0%)
- Mean ± Std
- 6.04e+04 ± 14.2
- Median ± IQR
- 6.04e+04 ± 16.0
- Min | Max
- 6.04e+04 | 6.04e+04
WMO ID
Float64DType- Null values
- 5 (100.0%)
YEAR/MONTH/DAY
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
Most frequent values
2008-04-17
2008-09-17
2008-04-11
2008-06-30
2008-08-17
['2008-04-17', '2008-09-17', '2008-04-11', '2008-06-30', '2008-08-17']
TMAX
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
- Mean ± Std
- 291. ± 52.4
- Median ± IQR
- 323. ± 79.0
- Min | Max
- 225. | 340.
PRCP
Float64DType- Null values
- 0 (0.0%)
0.0
SNOW
Float64DType- Null values
- 5 (100.0%)
No columns match the selected filter: . You can change the column filter in the dropdown menu above.
| Column 1 | Column 2 | Cramér's V | Pearson's Correlation |
|---|---|---|---|
| YEAR/MONTH/DAY | TMAX | 1.00 | |
| HCN/CRN FLAG | TMAX | 1.00 | 0.727 |
| HCN/CRN FLAG | YEAR/MONTH/DAY | 1.00 | |
| LATITUDE | HCN/CRN FLAG | 1.00 | -0.879 |
| LATITUDE | TMAX | 1.00 | -0.842 |
| LONGITUDE | ELEVATION | 1.00 | -0.468 |
| ID | HCN/CRN FLAG | 1.00 | |
| STATE | TMAX | 1.00 | |
| STATE | HCN/CRN FLAG | 1.00 | |
| STATE | YEAR/MONTH/DAY | 1.00 | |
| ELEVATION | STATE | 1.00 | |
| ELEVATION | HCN/CRN FLAG | 1.00 | 0.946 |
| ELEVATION | YEAR/MONTH/DAY | 1.00 | |
| ELEVATION | TMAX | 1.00 | 0.697 |
| LATITUDE | STATE | 1.00 | |
| LATITUDE | ELEVATION | 1.00 | -0.815 |
| LATITUDE | LONGITUDE | 1.00 | -0.0170 |
| ID | YEAR/MONTH/DAY | 1.00 | |
| ID | TMAX | 1.00 | |
| ID | ELEVATION | 1.00 | |
| ID | LONGITUDE | 1.00 | |
| LONGITUDE | TMAX | 1.00 | 0.0416 |
| LONGITUDE | YEAR/MONTH/DAY | 1.00 | |
| LONGITUDE | STATE | 1.00 | |
| ID | STATE | 1.00 | |
| LATITUDE | YEAR/MONTH/DAY | 1.00 | |
| LONGITUDE | HCN/CRN FLAG | 1.00 | -0.462 |
| ID | LATITUDE | 1.00 | |
| TMAX | PRCP | 0.00 | |
| TMAX | SNOW | 0.00 | |
| HCN/CRN FLAG | SNOW | 0.00 | |
| HCN/CRN FLAG | PRCP | 0.00 | |
| WMO ID | TMAX | 0.00 | |
| WMO ID | YEAR/MONTH/DAY | 0.00 | |
| WMO ID | PRCP | 0.00 | |
| WMO ID | SNOW | 0.00 | |
| YEAR/MONTH/DAY | SNOW | 0.00 | |
| YEAR/MONTH/DAY | PRCP | 0.00 | |
| PRCP | SNOW | 0.00 | |
| GSN FLAG | SNOW | 0.00 | |
| NAME | PRCP | 0.00 | |
| GSN FLAG | TMAX | 0.00 | |
| GSN FLAG | YEAR/MONTH/DAY | 0.00 | |
| GSN FLAG | WMO ID | 0.00 | |
| GSN FLAG | PRCP | 0.00 | |
| HCN/CRN FLAG | WMO ID | 0.00 | |
| LONGITUDE | SNOW | 0.00 | |
| ELEVATION | NAME | 0.00 | |
| ELEVATION | GSN FLAG | 0.00 | |
| ELEVATION | WMO ID | 0.00 | |
| STATE | GSN FLAG | 0.00 | |
| STATE | NAME | 0.00 | |
| ELEVATION | SNOW | 0.00 | |
| ELEVATION | PRCP | 0.00 | |
| STATE | WMO ID | 0.00 | |
| NAME | TMAX | 0.00 | |
| NAME | YEAR/MONTH/DAY | 0.00 | |
| NAME | WMO ID | 0.00 | |
| NAME | HCN/CRN FLAG | 0.00 | |
| NAME | GSN FLAG | 0.00 | |
| STATE | SNOW | 0.00 | |
| STATE | PRCP | 0.00 | |
| NAME | SNOW | 0.00 | |
| GSN FLAG | HCN/CRN FLAG | 0.00 | |
| LATITUDE | SNOW | 0.00 | |
| LATITUDE | PRCP | 0.00 | |
| LONGITUDE | WMO ID | 0.00 | |
| LONGITUDE | PRCP | 0.00 | |
| LONGITUDE | GSN FLAG | 0.00 | |
| LONGITUDE | NAME | 0.00 | |
| LATITUDE | GSN FLAG | 0.00 | |
| LATITUDE | WMO ID | 0.00 | |
| LATITUDE | NAME | 0.00 | |
| ID | PRCP | 0.00 | |
| ID | SNOW | 0.00 | |
| ID | NAME | 0.00 | |
| ID | WMO ID | 0.00 | |
| ID | GSN FLAG | 0.00 |
Please enable javascript
The skrub table reports need javascript to display correctly. If you are displaying a report in a Jupyter notebook and you see this message, you may need to re-execute the cell or to trust the notebook (button on the top right or "File > Trust notebook").
Then we join this table with the airports so that we get all auxiliary tables into one.
from skrub import Joiner
joiner = Joiner(airports, aux_key=["lat", "long"], main_key=["LATITUDE", "LONGITUDE"])
aux_augmented = joiner.fit_transform(aux)
aux_augmented.head()
| ID | LATITUDE | LONGITUDE | ELEVATION | STATE | NAME | GSN FLAG | HCN/CRN FLAG | WMO ID | YEAR/MONTH/DAY | TMAX | PRCP | SNOW | iata | airport | city | state | country | lat | long | skrub_Joiner_distance | skrub_Joiner_rescaled_distance | skrub_Joiner_match_accepted | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 0 | AGE00147708 | 36.7 | 4.05 | 222. | TIZI OUZOU | 6.04e+04 | 2008-04-17 | 225. | 0.00 | EPM | Eastport Municipal | Eastport | ME | USA | 44.9 | -67.0 | 3.26 | 4.47 | True | ||||
| 1 | AGM00060403 | 36.5 | 7.47 | 228. | GUELMA | 6.04e+04 | 2008-09-17 | 324. | 0.00 | EPM | Eastport Municipal | Eastport | ME | USA | 44.9 | -67.0 | 3.41 | 4.68 | True | ||||
| 2 | AGM00060403 | 36.5 | 7.47 | 228. | GUELMA | 6.04e+04 | 2008-04-11 | 245. | 0.00 | EPM | Eastport Municipal | Eastport | ME | USA | 44.9 | -67.0 | 3.41 | 4.68 | True | ||||
| 3 | AGM00060419 | 36.3 | 6.62 | 690. | MOHAMED BOUDIAF INTL | 6.04e+04 | 2008-06-30 | 340. | 0.00 | EPM | Eastport Municipal | Eastport | ME | USA | 44.9 | -67.0 | 3.38 | 4.64 | True | ||||
| 4 | AGM00060430 | 36.3 | 2.23 | 721. | MILIANA | 6.04e+04 | 2008-08-17 | 323. | 0.00 | EPM | Eastport Municipal | Eastport | ME | USA | 44.9 | -67.0 | 3.20 | 4.39 | True |
ID
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 4 (80.0%)
Most frequent values
AGM00060403
AGE00147708
AGM00060419
AGM00060430
['AGM00060403', 'AGE00147708', 'AGM00060419', 'AGM00060430']
LATITUDE
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 4 (80.0%)
- Mean ± Std
- 36.4 ± 0.178
- Median ± IQR
- 36.5 ± 0.167
- Min | Max
- 36.3 | 36.7
LONGITUDE
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 4 (80.0%)
- Mean ± Std
- 5.57 ± 2.33
- Median ± IQR
- 6.62 ± 3.42
- Min | Max
- 2.23 | 7.47
ELEVATION
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 4 (80.0%)
- Mean ± Std
- 418. ± 263.
- Median ± IQR
- 228. ± 462.
- Min | Max
- 222. | 721.
STATE
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 4 (80.0%)
Most frequent values
GUELMA
TIZI OUZOU
MOHAMED BOUDIAF INTL
MILIANA
['GUELMA', 'TIZI OUZOU', 'MOHAMED BOUDIAF INTL', 'MILIANA']
NAME
StringDtype- Null values
- 5 (100.0%)
GSN FLAG
StringDtype- Null values
- 5 (100.0%)
HCN/CRN FLAG
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 4 (80.0%)
- Mean ± Std
- 6.04e+04 ± 14.2
- Median ± IQR
- 6.04e+04 ± 16.0
- Min | Max
- 6.04e+04 | 6.04e+04
WMO ID
Float64DType- Null values
- 5 (100.0%)
YEAR/MONTH/DAY
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
Most frequent values
2008-04-17
2008-09-17
2008-04-11
2008-06-30
2008-08-17
['2008-04-17', '2008-09-17', '2008-04-11', '2008-06-30', '2008-08-17']
TMAX
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
- Mean ± Std
- 291. ± 52.4
- Median ± IQR
- 323. ± 79.0
- Min | Max
- 225. | 340.
PRCP
Float64DType- Null values
- 0 (0.0%)
0.0
SNOW
Float64DType- Null values
- 5 (100.0%)
iata
StringDtype- Null values
- 0 (0.0%)
EPM
airport
StringDtype- Null values
- 0 (0.0%)
Eastport Municipal
city
StringDtype- Null values
- 0 (0.0%)
Eastport
state
StringDtype- Null values
- 0 (0.0%)
ME
country
StringDtype- Null values
- 0 (0.0%)
USA
lat
Float64DType- Null values
- 0 (0.0%)
44.91011111
long
Float64DType- Null values
- 0 (0.0%)
-67.01269444
skrub_Joiner_distance
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 4 (80.0%)
- Mean ± Std
- 3.33 ± 0.0973
- Median ± IQR
- 3.38 ± 0.152
- Min | Max
- 3.20 | 3.41
skrub_Joiner_rescaled_distance
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 4 (80.0%)
- Mean ± Std
- 4.57 ± 0.133
- Median ± IQR
- 4.64 ± 0.208
- Min | Max
- 4.39 | 4.68
skrub_Joiner_match_accepted
BoolDType- Null values
- 0 (0.0%)
True
No columns match the selected filter: . You can change the column filter in the dropdown menu above.
|
Column
|
Column name
|
dtype
|
Is sorted
|
Null values
|
Unique values
|
Mean
|
Std
|
Min
|
Median
|
Max
|
|---|---|---|---|---|---|---|---|---|---|---|
| 0 | ID | StringDtype | True | 0 (0.0%) | 4 (80.0%) | |||||
| 1 | LATITUDE | Float64DType | False | 0 (0.0%) | 4 (80.0%) | 36.4 | 0.178 | 36.3 | 36.5 | 36.7 |
| 2 | LONGITUDE | Float64DType | False | 0 (0.0%) | 4 (80.0%) | 5.57 | 2.33 | 2.23 | 6.62 | 7.47 |
| 3 | ELEVATION | Float64DType | True | 0 (0.0%) | 4 (80.0%) | 418. | 263. | 222. | 228. | 721. |
| 4 | STATE | StringDtype | False | 0 (0.0%) | 4 (80.0%) | |||||
| 5 | NAME | StringDtype | False | 5 (100.0%) | ||||||
| 6 | GSN FLAG | StringDtype | False | 5 (100.0%) | ||||||
| 7 | HCN/CRN FLAG | Float64DType | True | 0 (0.0%) | 4 (80.0%) | 6.04e+04 | 14.2 | 6.04e+04 | 6.04e+04 | 6.04e+04 |
| 8 | WMO ID | Float64DType | False | 5 (100.0%) | ||||||
| 9 | YEAR/MONTH/DAY | StringDtype | False | 0 (0.0%) | 5 (100.0%) | |||||
| 10 | TMAX | Float64DType | False | 0 (0.0%) | 5 (100.0%) | 291. | 52.4 | 225. | 323. | 340. |
| 11 | PRCP | Float64DType | True | 0 (0.0%) | 1 (20.0%) | 0.00 | 0.00 | |||
| 12 | SNOW | Float64DType | False | 5 (100.0%) | ||||||
| 13 | iata | StringDtype | True | 0 (0.0%) | 1 (20.0%) | |||||
| 14 | airport | StringDtype | True | 0 (0.0%) | 1 (20.0%) | |||||
| 15 | city | StringDtype | True | 0 (0.0%) | 1 (20.0%) | |||||
| 16 | state | StringDtype | True | 0 (0.0%) | 1 (20.0%) | |||||
| 17 | country | StringDtype | True | 0 (0.0%) | 1 (20.0%) | |||||
| 18 | lat | Float64DType | True | 0 (0.0%) | 1 (20.0%) | 44.9 | 0.00 | |||
| 19 | long | Float64DType | True | 0 (0.0%) | 1 (20.0%) | -67.0 | 0.00 | |||
| 20 | skrub_Joiner_distance | Float64DType | False | 0 (0.0%) | 4 (80.0%) | 3.33 | 0.0973 | 3.20 | 3.38 | 3.41 |
| 21 | skrub_Joiner_rescaled_distance | Float64DType | False | 0 (0.0%) | 4 (80.0%) | 4.57 | 0.133 | 4.39 | 4.64 | 4.68 |
| 22 | skrub_Joiner_match_accepted | BoolDType | True | 0 (0.0%) | 1 (20.0%) | 1.00 |
No columns match the selected filter: . You can change the column filter in the dropdown menu above.
ID
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 4 (80.0%)
Most frequent values
AGM00060403
AGE00147708
AGM00060419
AGM00060430
['AGM00060403', 'AGE00147708', 'AGM00060419', 'AGM00060430']
LATITUDE
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 4 (80.0%)
- Mean ± Std
- 36.4 ± 0.178
- Median ± IQR
- 36.5 ± 0.167
- Min | Max
- 36.3 | 36.7
LONGITUDE
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 4 (80.0%)
- Mean ± Std
- 5.57 ± 2.33
- Median ± IQR
- 6.62 ± 3.42
- Min | Max
- 2.23 | 7.47
ELEVATION
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 4 (80.0%)
- Mean ± Std
- 418. ± 263.
- Median ± IQR
- 228. ± 462.
- Min | Max
- 222. | 721.
STATE
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 4 (80.0%)
Most frequent values
GUELMA
TIZI OUZOU
MOHAMED BOUDIAF INTL
MILIANA
['GUELMA', 'TIZI OUZOU', 'MOHAMED BOUDIAF INTL', 'MILIANA']
NAME
StringDtype- Null values
- 5 (100.0%)
GSN FLAG
StringDtype- Null values
- 5 (100.0%)
HCN/CRN FLAG
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 4 (80.0%)
- Mean ± Std
- 6.04e+04 ± 14.2
- Median ± IQR
- 6.04e+04 ± 16.0
- Min | Max
- 6.04e+04 | 6.04e+04
WMO ID
Float64DType- Null values
- 5 (100.0%)
YEAR/MONTH/DAY
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
Most frequent values
2008-04-17
2008-09-17
2008-04-11
2008-06-30
2008-08-17
['2008-04-17', '2008-09-17', '2008-04-11', '2008-06-30', '2008-08-17']
TMAX
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 5 (100.0%)
- Mean ± Std
- 291. ± 52.4
- Median ± IQR
- 323. ± 79.0
- Min | Max
- 225. | 340.
PRCP
Float64DType- Null values
- 0 (0.0%)
0.0
SNOW
Float64DType- Null values
- 5 (100.0%)
iata
StringDtype- Null values
- 0 (0.0%)
EPM
airport
StringDtype- Null values
- 0 (0.0%)
Eastport Municipal
city
StringDtype- Null values
- 0 (0.0%)
Eastport
state
StringDtype- Null values
- 0 (0.0%)
ME
country
StringDtype- Null values
- 0 (0.0%)
USA
lat
Float64DType- Null values
- 0 (0.0%)
44.91011111
long
Float64DType- Null values
- 0 (0.0%)
-67.01269444
skrub_Joiner_distance
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 4 (80.0%)
- Mean ± Std
- 3.33 ± 0.0973
- Median ± IQR
- 3.38 ± 0.152
- Min | Max
- 3.20 | 3.41
skrub_Joiner_rescaled_distance
Float64DType- Null values
- 0 (0.0%)
- Unique values
- 4 (80.0%)
- Mean ± Std
- 4.57 ± 0.133
- Median ± IQR
- 4.64 ± 0.208
- Min | Max
- 4.39 | 4.68
skrub_Joiner_match_accepted
BoolDType- Null values
- 0 (0.0%)
True
No columns match the selected filter: . You can change the column filter in the dropdown menu above.
| Column 1 | Column 2 | Cramér's V | Pearson's Correlation |
|---|---|---|---|
| skrub_Joiner_distance | skrub_Joiner_rescaled_distance | 1.00 | 1.00 |
| YEAR/MONTH/DAY | skrub_Joiner_distance | 1.00 | |
| YEAR/MONTH/DAY | skrub_Joiner_rescaled_distance | 1.00 | |
| TMAX | skrub_Joiner_distance | 1.00 | 0.0986 |
| HCN/CRN FLAG | YEAR/MONTH/DAY | 1.00 | |
| HCN/CRN FLAG | skrub_Joiner_rescaled_distance | 1.00 | -0.400 |
| HCN/CRN FLAG | skrub_Joiner_distance | 1.00 | -0.400 |
| HCN/CRN FLAG | TMAX | 1.00 | 0.727 |
| YEAR/MONTH/DAY | TMAX | 1.00 | |
| TMAX | skrub_Joiner_rescaled_distance | 1.00 | 0.0986 |
| LATITUDE | STATE | 1.00 | |
| LATITUDE | YEAR/MONTH/DAY | 1.00 | |
| LATITUDE | TMAX | 1.00 | -0.842 |
| LATITUDE | ELEVATION | 1.00 | -0.815 |
| ID | TMAX | 1.00 | |
| ID | LONGITUDE | 1.00 | |
| ID | YEAR/MONTH/DAY | 1.00 | |
| ID | STATE | 1.00 | |
| ID | ELEVATION | 1.00 | |
| ELEVATION | HCN/CRN FLAG | 1.00 | 0.946 |
| ELEVATION | skrub_Joiner_distance | 1.00 | -0.412 |
| ELEVATION | skrub_Joiner_rescaled_distance | 1.00 | -0.412 |
| STATE | HCN/CRN FLAG | 1.00 | |
| STATE | YEAR/MONTH/DAY | 1.00 | |
| STATE | TMAX | 1.00 | |
| ELEVATION | YEAR/MONTH/DAY | 1.00 | |
| LATITUDE | LONGITUDE | 1.00 | -0.0170 |
| ID | HCN/CRN FLAG | 1.00 | |
| ID | LATITUDE | 1.00 | |
| ELEVATION | STATE | 1.00 | |
| LONGITUDE | skrub_Joiner_rescaled_distance | 1.00 | 0.998 |
| LONGITUDE | skrub_Joiner_distance | 1.00 | 0.998 |
| LONGITUDE | YEAR/MONTH/DAY | 1.00 | |
| LONGITUDE | TMAX | 1.00 | 0.0416 |
| LATITUDE | skrub_Joiner_rescaled_distance | 1.00 | -0.0849 |
| LONGITUDE | STATE | 1.00 | |
| LONGITUDE | HCN/CRN FLAG | 1.00 | -0.462 |
| LONGITUDE | ELEVATION | 1.00 | -0.468 |
| LATITUDE | skrub_Joiner_distance | 1.00 | -0.0849 |
| ID | skrub_Joiner_rescaled_distance | 1.00 | |
| ID | skrub_Joiner_distance | 1.00 | |
| LATITUDE | HCN/CRN FLAG | 1.00 | -0.879 |
| ELEVATION | TMAX | 1.00 | 0.697 |
| STATE | skrub_Joiner_rescaled_distance | 1.00 | |
| STATE | skrub_Joiner_distance | 1.00 | |
| country | long | 0.00 | |
| country | lat | 0.00 | |
| state | skrub_Joiner_match_accepted | 0.00 | |
| state | skrub_Joiner_rescaled_distance | 0.00 | |
| state | skrub_Joiner_distance | 0.00 | |
| state | long | 0.00 | |
| state | lat | 0.00 | |
| long | skrub_Joiner_rescaled_distance | 0.00 | |
| long | skrub_Joiner_distance | 0.00 | |
| lat | skrub_Joiner_match_accepted | 0.00 | |
| lat | skrub_Joiner_rescaled_distance | 0.00 | |
| lat | skrub_Joiner_distance | 0.00 | |
| lat | long | 0.00 | |
| skrub_Joiner_rescaled_distance | skrub_Joiner_match_accepted | 0.00 | |
| long | skrub_Joiner_match_accepted | 0.00 | |
| skrub_Joiner_distance | skrub_Joiner_match_accepted | 0.00 | |
| PRCP | country | 0.00 | |
| PRCP | lat | 0.00 | |
| PRCP | long | 0.00 | |
| PRCP | skrub_Joiner_distance | 0.00 | |
| PRCP | skrub_Joiner_rescaled_distance | 0.00 | |
| PRCP | skrub_Joiner_match_accepted | 0.00 | |
| SNOW | iata | 0.00 | |
| SNOW | airport | 0.00 | |
| SNOW | city | 0.00 | |
| TMAX | lat | 0.00 | |
| TMAX | country | 0.00 | |
| TMAX | state | 0.00 | |
| TMAX | long | 0.00 | |
| PRCP | iata | 0.00 | |
| PRCP | state | 0.00 | |
| PRCP | city | 0.00 | |
| TMAX | SNOW | 0.00 | |
| TMAX | iata | 0.00 | |
| TMAX | airport | 0.00 | |
| YEAR/MONTH/DAY | skrub_Joiner_match_accepted | 0.00 | |
| YEAR/MONTH/DAY | long | 0.00 | |
| YEAR/MONTH/DAY | lat | 0.00 | |
| YEAR/MONTH/DAY | country | 0.00 | |
| TMAX | PRCP | 0.00 | |
| YEAR/MONTH/DAY | state | 0.00 | |
| YEAR/MONTH/DAY | city | 0.00 | |
| YEAR/MONTH/DAY | iata | 0.00 | |
| YEAR/MONTH/DAY | airport | 0.00 | |
| TMAX | city | 0.00 | |
| country | skrub_Joiner_match_accepted | 0.00 | |
| country | skrub_Joiner_rescaled_distance | 0.00 | |
| country | skrub_Joiner_distance | 0.00 | |
| airport | skrub_Joiner_rescaled_distance | 0.00 | |
| airport | skrub_Joiner_distance | 0.00 | |
| airport | long | 0.00 | |
| airport | lat | 0.00 | |
| airport | country | 0.00 | |
| airport | state | 0.00 | |
| airport | city | 0.00 | |
| iata | skrub_Joiner_match_accepted | 0.00 | |
| iata | skrub_Joiner_rescaled_distance | 0.00 | |
| iata | skrub_Joiner_distance | 0.00 | |
| iata | long | 0.00 | |
| iata | lat | 0.00 | |
| iata | country | 0.00 | |
| iata | state | 0.00 | |
| iata | city | 0.00 | |
| iata | airport | 0.00 | |
| SNOW | skrub_Joiner_match_accepted | 0.00 | |
| SNOW | skrub_Joiner_rescaled_distance | 0.00 | |
| SNOW | skrub_Joiner_distance | 0.00 | |
| SNOW | long | 0.00 | |
| SNOW | lat | 0.00 | |
| SNOW | country | 0.00 | |
| SNOW | state | 0.00 | |
| state | country | 0.00 | |
| city | skrub_Joiner_match_accepted | 0.00 | |
| city | skrub_Joiner_rescaled_distance | 0.00 | |
| city | skrub_Joiner_distance | 0.00 | |
| city | long | 0.00 | |
| city | lat | 0.00 | |
| city | country | 0.00 | |
| city | state | 0.00 | |
| airport | skrub_Joiner_match_accepted | 0.00 | |
| GSN FLAG | lat | 0.00 | |
| GSN FLAG | long | 0.00 | |
| GSN FLAG | skrub_Joiner_distance | 0.00 | |
| GSN FLAG | skrub_Joiner_rescaled_distance | 0.00 | |
| GSN FLAG | skrub_Joiner_match_accepted | 0.00 | |
| HCN/CRN FLAG | WMO ID | 0.00 | |
| HCN/CRN FLAG | SNOW | 0.00 | |
| HCN/CRN FLAG | PRCP | 0.00 | |
| HCN/CRN FLAG | city | 0.00 | |
| HCN/CRN FLAG | state | 0.00 | |
| HCN/CRN FLAG | iata | 0.00 | |
| HCN/CRN FLAG | airport | 0.00 | |
| HCN/CRN FLAG | country | 0.00 | |
| HCN/CRN FLAG | lat | 0.00 | |
| HCN/CRN FLAG | skrub_Joiner_match_accepted | 0.00 | |
| HCN/CRN FLAG | long | 0.00 | |
| WMO ID | country | 0.00 | |
| WMO ID | lat | 0.00 | |
| WMO ID | TMAX | 0.00 | |
| WMO ID | YEAR/MONTH/DAY | 0.00 | |
| WMO ID | PRCP | 0.00 | |
| WMO ID | SNOW | 0.00 | |
| WMO ID | airport | 0.00 | |
| WMO ID | iata | 0.00 | |
| WMO ID | long | 0.00 | |
| WMO ID | skrub_Joiner_distance | 0.00 | |
| WMO ID | city | 0.00 | |
| WMO ID | state | 0.00 | |
| YEAR/MONTH/DAY | SNOW | 0.00 | |
| YEAR/MONTH/DAY | PRCP | 0.00 | |
| WMO ID | skrub_Joiner_match_accepted | 0.00 | |
| WMO ID | skrub_Joiner_rescaled_distance | 0.00 | |
| PRCP | SNOW | 0.00 | |
| TMAX | skrub_Joiner_match_accepted | 0.00 | |
| PRCP | airport | 0.00 | |
| NAME | HCN/CRN FLAG | 0.00 | |
| NAME | WMO ID | 0.00 | |
| NAME | YEAR/MONTH/DAY | 0.00 | |
| NAME | PRCP | 0.00 | |
| NAME | GSN FLAG | 0.00 | |
| STATE | long | 0.00 | |
| STATE | skrub_Joiner_match_accepted | 0.00 | |
| GSN FLAG | country | 0.00 | |
| GSN FLAG | state | 0.00 | |
| GSN FLAG | iata | 0.00 | |
| GSN FLAG | SNOW | 0.00 | |
| GSN FLAG | city | 0.00 | |
| GSN FLAG | airport | 0.00 | |
| NAME | lat | 0.00 | |
| NAME | long | 0.00 | |
| NAME | country | 0.00 | |
| NAME | state | 0.00 | |
| NAME | iata | 0.00 | |
| NAME | SNOW | 0.00 | |
| NAME | city | 0.00 | |
| NAME | airport | 0.00 | |
| GSN FLAG | YEAR/MONTH/DAY | 0.00 | |
| GSN FLAG | WMO ID | 0.00 | |
| GSN FLAG | HCN/CRN FLAG | 0.00 | |
| NAME | skrub_Joiner_match_accepted | 0.00 | |
| NAME | skrub_Joiner_rescaled_distance | 0.00 | |
| NAME | skrub_Joiner_distance | 0.00 | |
| GSN FLAG | PRCP | 0.00 | |
| GSN FLAG | TMAX | 0.00 | |
| ELEVATION | NAME | 0.00 | |
| ELEVATION | GSN FLAG | 0.00 | |
| ELEVATION | WMO ID | 0.00 | |
| ELEVATION | SNOW | 0.00 | |
| ELEVATION | PRCP | 0.00 | |
| ELEVATION | city | 0.00 | |
| ELEVATION | airport | 0.00 | |
| ELEVATION | iata | 0.00 | |
| ELEVATION | country | 0.00 | |
| ELEVATION | lat | 0.00 | |
| ELEVATION | long | 0.00 | |
| ELEVATION | state | 0.00 | |
| STATE | WMO ID | 0.00 | |
| STATE | GSN FLAG | 0.00 | |
| STATE | NAME | 0.00 | |
| ELEVATION | skrub_Joiner_match_accepted | 0.00 | |
| STATE | city | 0.00 | |
| STATE | state | 0.00 | |
| STATE | country | 0.00 | |
| STATE | lat | 0.00 | |
| STATE | airport | 0.00 | |
| STATE | iata | 0.00 | |
| STATE | SNOW | 0.00 | |
| STATE | PRCP | 0.00 | |
| NAME | TMAX | 0.00 | |
| LONGITUDE | WMO ID | 0.00 | |
| LONGITUDE | city | 0.00 | |
| LONGITUDE | country | 0.00 | |
| LONGITUDE | state | 0.00 | |
| LONGITUDE | lat | 0.00 | |
| LONGITUDE | long | 0.00 | |
| LONGITUDE | skrub_Joiner_match_accepted | 0.00 | |
| LATITUDE | SNOW | 0.00 | |
| LATITUDE | iata | 0.00 | |
| LATITUDE | airport | 0.00 | |
| LATITUDE | city | 0.00 | |
| LATITUDE | state | 0.00 | |
| LATITUDE | country | 0.00 | |
| LATITUDE | lat | 0.00 | |
| LATITUDE | long | 0.00 | |
| LATITUDE | skrub_Joiner_match_accepted | 0.00 | |
| LONGITUDE | NAME | 0.00 | |
| LONGITUDE | GSN FLAG | 0.00 | |
| LONGITUDE | airport | 0.00 | |
| LONGITUDE | SNOW | 0.00 | |
| LONGITUDE | iata | 0.00 | |
| LONGITUDE | PRCP | 0.00 | |
| LATITUDE | NAME | 0.00 | |
| ID | country | 0.00 | |
| ID | lat | 0.00 | |
| ID | long | 0.00 | |
| ID | skrub_Joiner_match_accepted | 0.00 | |
| LATITUDE | WMO ID | 0.00 | |
| LATITUDE | PRCP | 0.00 | |
| LATITUDE | GSN FLAG | 0.00 | |
| ID | state | 0.00 | |
| ID | SNOW | 0.00 | |
| ID | PRCP | 0.00 | |
| ID | airport | 0.00 | |
| ID | iata | 0.00 | |
| ID | city | 0.00 | |
| ID | NAME | 0.00 | |
| ID | WMO ID | 0.00 | |
| ID | GSN FLAG | 0.00 |
Please enable javascript
The skrub table reports need javascript to display correctly. If you are displaying a report in a Jupyter notebook and you see this message, you may need to re-execute the cell or to trust the notebook (button on the top right or "File > Trust notebook").
Joining airports with flights data: Let’s instantiate another multiple key joiner on the date and the airport:
joiner = Joiner(
aux_augmented,
aux_key=["YEAR/MONTH/DAY", "iata"],
main_key=["Year_Month_DayofMonth", "Origin"],
)
flights.drop(columns=["TailNum", "FlightNum"])
| Year_Month_DayofMonth | DayOfWeek | CRSDepTime | CRSArrTime | UniqueCarrier | CRSElapsedTime | ArrDelay | Origin | Dest | Distance | |
|---|---|---|---|---|---|---|---|---|---|---|
| 0 | 2008-01-13 | 7 | 1900-01-01 18:35:00 | 1900-01-01 20:08:00 | CO | 213. | 1.00 | IAH | ONT | 1.33e+03 |
| 1 | 2008-02-21 | 4 | 1900-01-01 14:30:00 | 1900-01-01 16:06:00 | NW | 216. | 2.00 | MSP | SEA | 1.40e+03 |
| 2 | 2008-03-26 | 3 | 1900-01-01 07:00:00 | 1900-01-01 09:38:00 | US | 98.0 | -1.00 | PHX | SLC | 507. |
| 3 | 2008-01-03 | 4 | 1900-01-01 08:40:00 | 1900-01-01 12:03:00 | CO | 383. | 46.0 | EWR | SNA | 2.43e+03 |
| 4 | 2008-01-31 | 4 | 1900-01-01 12:50:00 | 1900-01-01 14:10:00 | MQ | 80.0 | -14.0 | SJC | SNA | 342. |
| 4,995 | 2008-04-01 | 2 | 1900-01-01 10:14:00 | 1900-01-01 10:45:00 | EV | 91.0 | 50.0 | ATL | PFN | 247. |
| 4,996 | 2008-02-25 | 1 | 1900-01-01 12:00:00 | 1900-01-01 13:30:00 | AA | 210. | -2.00 | DFW | RNO | 1.34e+03 |
| 4,997 | 2008-01-20 | 7 | 1900-01-01 06:00:00 | 1900-01-01 07:30:00 | AQ | 90.0 | -13.0 | LAS | OAK | 407. |
| 4,998 | 2008-03-14 | 5 | 1900-01-01 06:42:00 | 1900-01-01 08:04:00 | XE | 82.0 | -16.0 | ROC | CLE | 245. |
| 4,999 | 2008-04-18 | 5 | 1900-01-01 19:38:00 | 1900-01-01 20:06:00 | OO | 88.0 | -3.00 | ICT | DEN | 419. |
Year_Month_DayofMonth
StringDtype- Null values
- 0 (0.0%)
- Unique values
-
120 (2.4%)
This column has a high cardinality (> 40).
Most frequent values
2008-03-28
2008-03-17
2008-02-25
2008-04-10
2008-02-13
2008-04-01
2008-03-18
2008-01-07
2008-02-26
List:2008-01-04
['2008-03-28', '2008-03-17', '2008-02-25', '2008-04-10', '2008-02-13', '2008-04-01', '2008-03-18', '2008-01-07', '2008-02-26', '2008-01-04']
DayOfWeek
Int64DType- Null values
- 0 (0.0%)
- Unique values
- 7 (0.1%)
- Mean ± Std
- 3.93 ± 1.99
- Median ± IQR
- 4 ± 4
- Min | Max
- 1 | 7
CRSDepTime
StringDtype- Null values
- 0 (0.0%)
- Unique values
-
736 (14.7%)
This column has a high cardinality (> 40).
Most frequent values
1900-01-01 06:00:00
1900-01-01 07:00:00
1900-01-01 06:30:00
1900-01-01 07:30:00
1900-01-01 08:00:00
1900-01-01 14:30:00
1900-01-01 18:50:00
1900-01-01 09:00:00
1900-01-01 11:30:00
List:1900-01-01 06:15:00
['1900-01-01 06:00:00', '1900-01-01 07:00:00', '1900-01-01 06:30:00', '1900-01-01 07:30:00', '1900-01-01 08:00:00', '1900-01-01 14:30:00', '1900-01-01 18:50:00', '1900-01-01 09:00:00', '1900-01-01 11:30:00', '1900-01-01 06:15:00']
CRSArrTime
StringDtype- Null values
- 14 (0.3%)
- Unique values
-
1,025 (20.5%)
This column has a high cardinality (> 40).
Most frequent values
1900-01-01 20:15:00
1900-01-01 13:30:00
1900-01-01 11:40:00
1900-01-01 12:20:00
1900-01-01 10:40:00
1900-01-01 14:50:00
1900-01-01 19:45:00
1900-01-01 15:15:00
1900-01-01 14:20:00
List:1900-01-01 11:30:00
['1900-01-01 20:15:00', '1900-01-01 13:30:00', '1900-01-01 11:40:00', '1900-01-01 12:20:00', '1900-01-01 10:40:00', '1900-01-01 14:50:00', '1900-01-01 19:45:00', '1900-01-01 15:15:00', '1900-01-01 14:20:00', '1900-01-01 11:30:00']
UniqueCarrier
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 20 (0.4%)
Most frequent values
WN
AA
OO
MQ
UA
DL
US
XE
CO
NW
['WN', 'AA', 'OO', 'MQ', 'UA', 'DL', 'US', 'XE', 'CO', 'NW']
CRSElapsedTime
Float64DType- Null values
- 4 (< 0.1%)
- Unique values
-
340 (6.8%)
This column has a high cardinality (> 40).
- Mean ± Std
- 129. ± 68.9
- Median ± IQR
- 110. ± 81.0
- Min | Max
- 27.0 | 565.
ArrDelay
Float64DType- Null values
- 153 (3.1%)
- Unique values
-
249 (5.0%)
This column has a high cardinality (> 40).
- Mean ± Std
- 10.6 ± 44.9
- Median ± IQR
- -1.00 ± 23.0
- Min | Max
- -45.0 | 1.10e+03
Origin
StringDtype- Null values
- 0 (0.0%)
- Unique values
-
230 (4.6%)
This column has a high cardinality (> 40).
Most frequent values
ATL
ORD
DFW
DEN
LAX
PHX
IAH
LAS
EWR
List:SFO
['ATL', 'ORD', 'DFW', 'DEN', 'LAX', 'PHX', 'IAH', 'LAS', 'EWR', 'SFO']
Dest
StringDtype- Null values
- 0 (0.0%)
- Unique values
-
230 (4.6%)
This column has a high cardinality (> 40).
Most frequent values
ATL
ORD
DFW
DEN
LAX
LAS
IAH
PHX
DTW
List:SLC
['ATL', 'ORD', 'DFW', 'DEN', 'LAX', 'LAS', 'IAH', 'PHX', 'DTW', 'SLC']
Distance
Float64DType- Null values
- 0 (0.0%)
- Unique values
-
1,022 (20.4%)
This column has a high cardinality (> 40).
- Mean ± Std
- 720. ± 554.
- Median ± IQR
- 580. ± 626.
- Min | Max
- 31.0 | 4.96e+03
No columns match the selected filter: . You can change the column filter in the dropdown menu above.
|
Column
|
Column name
|
dtype
|
Is sorted
|
Null values
|
Unique values
|
Mean
|
Std
|
Min
|
Median
|
Max
|
|---|---|---|---|---|---|---|---|---|---|---|
| 0 | Year_Month_DayofMonth | StringDtype | False | 0 (0.0%) | 120 (2.4%) | |||||
| 1 | DayOfWeek | Int64DType | False | 0 (0.0%) | 7 (0.1%) | 3.93 | 1.99 | 1 | 4 | 7 |
| 2 | CRSDepTime | StringDtype | False | 0 (0.0%) | 736 (14.7%) | |||||
| 3 | CRSArrTime | StringDtype | False | 14 (0.3%) | 1025 (20.5%) | |||||
| 4 | UniqueCarrier | StringDtype | False | 0 (0.0%) | 20 (0.4%) | |||||
| 5 | CRSElapsedTime | Float64DType | False | 4 (< 0.1%) | 340 (6.8%) | 129. | 68.9 | 27.0 | 110. | 565. |
| 6 | ArrDelay | Float64DType | False | 153 (3.1%) | 249 (5.0%) | 10.6 | 44.9 | -45.0 | -1.00 | 1.10e+03 |
| 7 | Origin | StringDtype | False | 0 (0.0%) | 230 (4.6%) | |||||
| 8 | Dest | StringDtype | False | 0 (0.0%) | 230 (4.6%) | |||||
| 9 | Distance | Float64DType | False | 0 (0.0%) | 1022 (20.4%) | 720. | 554. | 31.0 | 580. | 4.96e+03 |
No columns match the selected filter: . You can change the column filter in the dropdown menu above.
Year_Month_DayofMonth
StringDtype- Null values
- 0 (0.0%)
- Unique values
-
120 (2.4%)
This column has a high cardinality (> 40).
Most frequent values
2008-03-28
2008-03-17
2008-02-25
2008-04-10
2008-02-13
2008-04-01
2008-03-18
2008-01-07
2008-02-26
List:2008-01-04
['2008-03-28', '2008-03-17', '2008-02-25', '2008-04-10', '2008-02-13', '2008-04-01', '2008-03-18', '2008-01-07', '2008-02-26', '2008-01-04']
DayOfWeek
Int64DType- Null values
- 0 (0.0%)
- Unique values
- 7 (0.1%)
- Mean ± Std
- 3.93 ± 1.99
- Median ± IQR
- 4 ± 4
- Min | Max
- 1 | 7
CRSDepTime
StringDtype- Null values
- 0 (0.0%)
- Unique values
-
736 (14.7%)
This column has a high cardinality (> 40).
Most frequent values
1900-01-01 06:00:00
1900-01-01 07:00:00
1900-01-01 06:30:00
1900-01-01 07:30:00
1900-01-01 08:00:00
1900-01-01 14:30:00
1900-01-01 18:50:00
1900-01-01 09:00:00
1900-01-01 11:30:00
List:1900-01-01 06:15:00
['1900-01-01 06:00:00', '1900-01-01 07:00:00', '1900-01-01 06:30:00', '1900-01-01 07:30:00', '1900-01-01 08:00:00', '1900-01-01 14:30:00', '1900-01-01 18:50:00', '1900-01-01 09:00:00', '1900-01-01 11:30:00', '1900-01-01 06:15:00']
CRSArrTime
StringDtype- Null values
- 14 (0.3%)
- Unique values
-
1,025 (20.5%)
This column has a high cardinality (> 40).
Most frequent values
1900-01-01 20:15:00
1900-01-01 13:30:00
1900-01-01 11:40:00
1900-01-01 12:20:00
1900-01-01 10:40:00
1900-01-01 14:50:00
1900-01-01 19:45:00
1900-01-01 15:15:00
1900-01-01 14:20:00
List:1900-01-01 11:30:00
['1900-01-01 20:15:00', '1900-01-01 13:30:00', '1900-01-01 11:40:00', '1900-01-01 12:20:00', '1900-01-01 10:40:00', '1900-01-01 14:50:00', '1900-01-01 19:45:00', '1900-01-01 15:15:00', '1900-01-01 14:20:00', '1900-01-01 11:30:00']
UniqueCarrier
StringDtype- Null values
- 0 (0.0%)
- Unique values
- 20 (0.4%)
Most frequent values
WN
AA
OO
MQ
UA
DL
US
XE
CO
NW
['WN', 'AA', 'OO', 'MQ', 'UA', 'DL', 'US', 'XE', 'CO', 'NW']
CRSElapsedTime
Float64DType- Null values
- 4 (< 0.1%)
- Unique values
-
340 (6.8%)
This column has a high cardinality (> 40).
- Mean ± Std
- 129. ± 68.9
- Median ± IQR
- 110. ± 81.0
- Min | Max
- 27.0 | 565.
ArrDelay
Float64DType- Null values
- 153 (3.1%)
- Unique values
-
249 (5.0%)
This column has a high cardinality (> 40).
- Mean ± Std
- 10.6 ± 44.9
- Median ± IQR
- -1.00 ± 23.0
- Min | Max
- -45.0 | 1.10e+03
Origin
StringDtype- Null values
- 0 (0.0%)
- Unique values
-
230 (4.6%)
This column has a high cardinality (> 40).
Most frequent values
ATL
ORD
DFW
DEN
LAX
PHX
IAH
LAS
EWR
List:SFO
['ATL', 'ORD', 'DFW', 'DEN', 'LAX', 'PHX', 'IAH', 'LAS', 'EWR', 'SFO']
Dest
StringDtype- Null values
- 0 (0.0%)
- Unique values
-
230 (4.6%)
This column has a high cardinality (> 40).
Most frequent values
ATL
ORD
DFW
DEN
LAX
LAS
IAH
PHX
DTW
List:SLC
['ATL', 'ORD', 'DFW', 'DEN', 'LAX', 'LAS', 'IAH', 'PHX', 'DTW', 'SLC']
Distance
Float64DType- Null values
- 0 (0.0%)
- Unique values
-
1,022 (20.4%)
This column has a high cardinality (> 40).
- Mean ± Std
- 720. ± 554.
- Median ± IQR
- 580. ± 626.
- Min | Max
- 31.0 | 4.96e+03
No columns match the selected filter: . You can change the column filter in the dropdown menu above.
| Column 1 | Column 2 | Cramér's V | Pearson's Correlation |
|---|---|---|---|
| CRSElapsedTime | Distance | 0.611 | 0.980 |
| Year_Month_DayofMonth | DayOfWeek | 0.330 | |
| UniqueCarrier | Origin | 0.301 | |
| UniqueCarrier | Dest | 0.291 | |
| UniqueCarrier | Distance | 0.175 | |
| UniqueCarrier | CRSElapsedTime | 0.172 | |
| Origin | Distance | 0.116 | |
| Dest | Distance | 0.112 | |
| CRSElapsedTime | Dest | 0.106 | |
| CRSElapsedTime | Origin | 0.104 | |
| ArrDelay | Dest | 0.0990 | |
| Year_Month_DayofMonth | Distance | 0.0938 | |
| Origin | Dest | 0.0897 | |
| Year_Month_DayofMonth | ArrDelay | 0.0874 | |
| UniqueCarrier | ArrDelay | 0.0793 | |
| CRSElapsedTime | ArrDelay | 0.0728 | -0.0155 |
| CRSArrTime | UniqueCarrier | 0.0691 | |
| Year_Month_DayofMonth | CRSElapsedTime | 0.0679 | |
| CRSDepTime | CRSArrTime | 0.0668 | |
| CRSDepTime | Dest | 0.0664 | |
| CRSDepTime | Origin | 0.0620 | |
| DayOfWeek | UniqueCarrier | 0.0617 | |
| CRSDepTime | ArrDelay | 0.0614 | |
| DayOfWeek | Dest | 0.0613 | |
| Year_Month_DayofMonth | Dest | 0.0609 | |
| CRSDepTime | UniqueCarrier | 0.0607 | |
| Year_Month_DayofMonth | CRSArrTime | 0.0606 | |
| Year_Month_DayofMonth | UniqueCarrier | 0.0606 | |
| DayOfWeek | CRSElapsedTime | 0.0599 | 0.0512 |
| DayOfWeek | CRSArrTime | 0.0589 | |
| CRSArrTime | Dest | 0.0582 | |
| DayOfWeek | Origin | 0.0575 | |
| DayOfWeek | Distance | 0.0565 | 0.0443 |
| ArrDelay | Origin | 0.0559 | |
| CRSArrTime | Origin | 0.0550 | |
| Year_Month_DayofMonth | Origin | 0.0530 | |
| CRSDepTime | CRSElapsedTime | 0.0500 | |
| CRSArrTime | CRSElapsedTime | 0.0478 | |
| DayOfWeek | ArrDelay | 0.0452 | 0.00981 |
| CRSDepTime | Distance | 0.0443 | |
| Year_Month_DayofMonth | CRSDepTime | 0.0441 | |
| DayOfWeek | CRSDepTime | 0.0424 | |
| CRSArrTime | Distance | 0.0401 | |
| ArrDelay | Distance | 0.0337 | -0.0316 |
| CRSArrTime | ArrDelay | 0.0268 |
Please enable javascript
The skrub table reports need javascript to display correctly. If you are displaying a report in a Jupyter notebook and you see this message, you may need to re-execute the cell or to trust the notebook (button on the top right or "File > Trust notebook").
Training data is then passed through a Pipeline:
We will combine all the information from our pool of tables into “flights”,
our main table. - We will use this main table to model the prediction of flight delay.
from sklearn.ensemble import HistGradientBoostingClassifier
from sklearn.pipeline import make_pipeline
from skrub import TableVectorizer
tv = TableVectorizer()
hgb = HistGradientBoostingClassifier()
pipeline_hgb = make_pipeline(joiner, tv, hgb)
We isolate our target variable and remove useless ID variables:
y = flights["ArrDelay"]
X = flights.drop(columns=["ArrDelay"])
We want to frame this as a classification problem: suppose that your company is obliged to reimburse the ticket price if the flight is delayed.
We have a binary classification problem: the flight was delayed (1) or not (0).
y = (y > 0).astype(int)
y.value_counts()
ArrDelay
0 2727
1 2273
Name: count, dtype: int64
The results:
from sklearn.model_selection import train_test_split
X_train, X_test, y_train, y_test = train_test_split(X, y, random_state=seed)
pipeline_hgb.fit(X_train, y_train).score(X_test, y_test)
0.5568
Conclusion#
In this example, we have combined multiple tables with complex joins
on imprecise and multiple-key correspondences.
This is made easy by skrub’s Joiner() transformer.
Our final cross-validated accuracy score is 0.55.
Total running time of the script: (0 minutes 44.886 seconds)
Estimated memory usage: 2986 MB