gt-extras
  • Intro
  • Examples
  • API Reference

Examples

Car Performance Review
Using gt-extras functionality
Car mfr year hp trq mpg_c mpg_h efficiency
California
Ferrari
2015
553.0
557.0
2.8933092224231465 out of 5 2.8933092224231465 out of 5 2.8933092224231465 out of 5 2.8933092224231465 out of 5 2.8933092224231465 out of 5
GTC4Lusso
Ferrari
2017
680.0
514.0
1.7647058823529411 out of 5 1.7647058823529411 out of 5 1.7647058823529411 out of 5 1.7647058823529411 out of 5 1.7647058823529411 out of 5
FF
Ferrari
2015
652.0
504.0
1.687116564417178 out of 5 1.687116564417178 out of 5 1.687116564417178 out of 5 1.687116564417178 out of 5 1.687116564417178 out of 5
F12Berlinetta
Ferrari
2015
731.0
509.0
1.5047879616963065 out of 5 1.5047879616963065 out of 5 1.5047879616963065 out of 5 1.5047879616963065 out of 5 1.5047879616963065 out of 5
LaFerrari
Ferrari
2015
949.0
664.0
1.2644889357218125 out of 5 1.2644889357218125 out of 5 1.2644889357218125 out of 5 1.2644889357218125 out of 5 1.2644889357218125 out of 5
NSX
Acura
2017
573.0
476.0
3.664921465968586 out of 5 3.664921465968586 out of 5 3.664921465968586 out of 5 3.664921465968586 out of 5 3.664921465968586 out of 5
GT-R
Nissan
2016
545.0
436.0
2.9357798165137616 out of 5 2.9357798165137616 out of 5 2.9357798165137616 out of 5 2.9357798165137616 out of 5 2.9357798165137616 out of 5
Aventador
Lamborghini
2015
700.0
507.0
1.5714285714285716 out of 5 1.5714285714285716 out of 5 1.5714285714285716 out of 5 1.5714285714285716 out of 5 1.5714285714285716 out of 5
Huracan
Lamborghini
2015
610.0
413.0
2.622950819672131 out of 5 2.622950819672131 out of 5 2.622950819672131 out of 5 2.622950819672131 out of 5 2.622950819672131 out of 5
Gallardo
Lamborghini
2014
550.0
398.0
2.181818181818182 out of 5 2.181818181818182 out of 5 2.181818181818182 out of 5 2.181818181818182 out of 5 2.181818181818182 out of 5
Continental GT
Bentley
2016
500.0
487.0
3.0 out of 5 3.0 out of 5 3.0 out of 5 3.0 out of 5 3.0 out of 5
Granturismo
Maserati
2016
454.0
384.0
2.8634361233480177 out of 5 2.8634361233480177 out of 5 2.8634361233480177 out of 5 2.8634361233480177 out of 5 2.8634361233480177 out of 5
Quattroporte
Maserati
2016
404.0
406.0
3.9603960396039604 out of 5 3.9603960396039604 out of 5 3.9603960396039604 out of 5 3.9603960396039604 out of 5 3.9603960396039604 out of 5
Ghibli
Maserati
2016
345.0
369.0
4.9275362318840585 out of 5 4.9275362318840585 out of 5 4.9275362318840585 out of 5 4.9275362318840585 out of 5 4.9275362318840585 out of 5
6-Series
BMW
2016
315.0
330.0
6.349206349206349 out of 5 6.349206349206349 out of 5 6.349206349206349 out of 5 6.349206349206349 out of 5 6.349206349206349 out of 5
i8
BMW
2016
357.0
420.0
7.8431372549019605 out of 5 7.8431372549019605 out of 5 7.8431372549019605 out of 5 7.8431372549019605 out of 5 7.8431372549019605 out of 5

Cars

2011 NFL Season at a Glance
Super Bowl XLVI: New York Giants def. New England Patriots
Team Record Scoring Season Trends
Points For vs Points Against Point Diff Games Streak
AFC East
NE 14-2-0
2816
11.9
Turn up
7
MIA 10-6-0
2324
-1.1
Turn down
-1
BUF 7-9-0
2524
1.3
Turn down
-2
NYJ 5-11-0
1726
-8.4
Turn up
1
AFC North
PIT 11-5-0
2520
4.5
Turn up
7
BAL 8-8-0
2120
1.4
Turn down
-2
CIN 6-9-1
2020
0.6
Turn up
1
CLE 1-15-0
1628
-11.8
Turn down
-1
AFC South
TEN 9-7-0
2424
0.2
Turn up
1
HOU 9-7-0
1720
-3.1
Turn down
-1
IND 8-8-0
2624
1.2
Turn up
1
JAX 3-13-0
2025
-5.1
Turn down
-1
AFC West
KC 12-4-0
2419
4.9
Turn up
2
OAK 12-4-0
2624
1.9
Turn down
-1
DEN 9-7-0
2119
2.2
Turn up
1
SD 5-11-0
2626
-0.8
Turn down
-5
Source: Lee Sharpe, nflverse
Team Record Scoring Season Trends
Points For vs Points Against Point Diff Games Streak
NFC East
DAL 13-3-0
2619
7.2
Turn down
-1
NYG 11-5-0
1918
1.6
Turn up
1
WAS 8-7-1
2524
0.8
Turn down
-1
PHI 7-9-0
2321
2.2
Turn up
2
NFC North
GB 10-6-0
2724
2.8
Turn up
6
DET 9-7-0
2222
-0.8
Turn down
-3
MIN 8-8-0
2019
1.2
Turn up
1
CHI 3-13-0
1725
-7.5
Turn down
-4
NFC South
ATL 11-5-0
3425
8.4
Turn up
4
TB 9-7-0
2223
-0.9
Turn up
1
NO 7-9-0
2928
0.9
Turn down
-1
CAR 6-10-0
2325
-2.1
Turn down
-2
NFC West
SEA 10-5-1
2218
3.9
Turn up
1
ARI 7-8-1
2623
3.5
Turn up
2
LA 4-12-0
1425
-10.6
Turn down
-7
SF 2-14-0
1930
-10.7
Turn down
-1
Source: Lee Sharpe, nflverse

NFL 2011 Season

Income Inequality Before and After Taxes in 2020
As measured by the Gini coefficient, where 0 is best and 1 is worst
Pre-tax to Post-tax Coefficient Population Improvement Post Taxes
Europe
France France
0.520.28
65,905,226
Germany Germany
0.50.3
83,628,661
Spain Spain
0.520.33
47,679,437
Italy Italy
0.530.33
59,912,714
United Kingdom United Kingdom
0.510.35
67,351,806
Asia
South Korea Korea, Rep.
0.410.33
51,858,440
Turkey Turkiye
0.50.4
86,091,644
North America
United States United States
0.520.38
339,436,106
Mexico Mexico
0.430.42
126,798,998
South America
Brazil Brazil
0.550.45
208,660,785
Source: Data from #TidyTuesday (2025-08-05).
Dumbbell plot: Blue: post-tax Gini coefficient Gold: pre-tax Gini coefficient
Bullet plot: Percent reduction in Gini after taxes for each country, compared to its 5-year average benchmark.

Gini Coefficients

Car mfr year hp hp_rpm trq trq_rpm mpg_c mpg_h
LaFerrari Ferrari 2015
NSX Acura 2017
GT-R Nissan 2016
Aventador Lamborghini 2015
Huracan Lamborghini 2015
Gallardo Lamborghini 2014
Continental GT Bentley 2016
Granturismo Maserati 2016
Quattroporte Maserati 2016

gt_plt_bar

x autoscale_on autoscale_off
10
25%
10%
20
50%
20%
30
75%
30%
40
100%
40%

gt_plt_bar_pct

x Group 1 | Group 2 | Group 3
Example A
104050
Example B
303040
Example C
502030

gt_plt_bar_stack

Daily Temp vs Monthly Average
Temp plot Temp
5/1
67
5/2
72
6/1
78
6/2
74
7/1
84
7/2
85
8/1
81
8/2
81
9/1
91
9/2
92
Target line shows monthly average temperature

gt_plt_bullet

group mean ci_lower ci_upper ci
A 5.2 3.1 7.3
3.17.3
B 7.8 6.1 9.7
6.19.7
C 3.4 1.8 5.0
1.85

gt_plt_conf_int

Car mfr hp
F12Berlinetta
Ferrari
731.0
LaFerrari
Ferrari
949.0
NSX
Acura
573.0
GT-R
Nissan
545.0
Aventador
Lamborghini
700.0
Huracan
Lamborghini
610.0
Gallardo
Lamborghini
550.0
Continental GT
Bentley
500.0
Granturismo
Maserati
454.0
Quattroporte
Maserati
404.0
Ghibli
Maserati
345.0
6-Series
BMW
315.0
i8
BMW
357.0

gt_plt_dot

date Open to Close ($)
2008-12-03
844871
2008-12-04
870845
2008-12-05
844876
2008-12-08
883910
2008-12-09
906889
2008-12-10
892899
2008-12-11
898874
2008-12-12
872880
2008-12-15
881869
Purple: Open
Green: Close

gt_plt_dumbbell

Summary Table
45 rows x 5 cols
Type Column Plot Overview Missing Mean Median SD
Clock Date 2024-01-012024-02-0115 rows[2024-01-01 to 2024-01-07]10 rows[2024-01-07 to 2024-01-13]5 rows[2024-01-13 to 2024-01-19]10 rows[2024-01-19 to 2024-01-25]5 rows[2024-01-25 to 2024-02-01] 0.0% — — —
signal Value 10405 rows[10 to 15]10 rows[15 to 20]10 rows[20 to 25]5 rows[25 to 30]5 rows[30 to 35]5 rows[35 to 40] 11.1% 22.50 21.00 8.83
List Category 10 rows"A"10 rows"B"10 rows"C"5 rows"D" 22.2% — — —
Check Boolean 30 rows"True"15 rows"False" 0.0% 0.67 — —
List Status 15 rows"Active"15 rows"Inactive" 33.3% — — —

gt_plt_summary

Team 10 Games
Liverpool
Chelsea
Man City

gt_plt_winloss

Island size
Asia
16988
Africa
11506
North America
9390
South America
6795
Antarctica
5500
Europe
3745
Australia
2968
Greenland
840
New Guinea
306
Borneo
280

gt_color_box

Color by Group Color All
grp_a
row_1 0.1111 0.1111
row_2 2.222 2.222
row_3 33.33 33.33
row_4 444.4 444.4
grp_b
row_5 5550.0 5550.0
row_6
row_7 777000.0 777000.0
row_8 8880000.0 8880000.0
Left: gt_data_color_by_group, Right: data_color

gt_data_color_by_group

Car year hp trq mpg_h
GT 2017 647.0 550.0 18.0
458 Speciale 2015 597.0 398.0 17.0
458 Spider 2015 562.0 398.0 17.0
458 Italia 2014 562.0 398.0 17.0
488 GTB 2016 661.0 561.0 22.0
California 2015 553.0 557.0 23.0
GTC4Lusso 2017 680.0 514.0 17.0
FF 2015 652.0 504.0 16.0

gt_highlight_cols

Car year hp trq
GT 2017 647.0 550.0
458 Speciale 2015 597.0 398.0
458 Spider 2015 562.0 398.0
458 Italia 2014 562.0 398.0
488 GTB 2016 661.0 561.0
California 2015 553.0 557.0
GTC4Lusso 2017 680.0 514.0
FF 2015 652.0 504.0

gt_highlight_rows

Car mfr year hp trq mpg_h
GT Ford 2017 647.0 550.0 18.0
458 Speciale Ferrari 2015 597.0 398.0 17.0
458 Spider Ferrari 2015 562.0 398.0 17.0
458 Italia Ferrari 2014 562.0 398.0 17.0
488 GTB Ferrari 2016 661.0 561.0 22.0
California Ferrari 2015 553.0 557.0 23.0
GTC4Lusso Ferrari 2017 680.0 514.0 17.0
FF Ferrari 2015 652.0 504.0 16.0
F12Berlinetta Ferrari 2015 731.0 509.0 16.0

gt_hulk_col_numeric

FiveThirtyEight Theme
Time Measurement
Year Month Day Ozone,
ppbV
Solar R.,
cal/m2
Wind,
mph
Temp,
°F
1973 5 1 41.0 190.0 7.4 67
1973 5 2 36.0 118.0 8.0 72
1973 5 3 12.0 149.0 12.6 74
1973 5 4 18.0 313.0 11.5 62
1973 5 5 14.3 56
1973 5 6 28.0 14.9 66
1973 5 7 23.0 299.0 8.6 65
1973 5 8 19.0 99.0 13.8 59
1973 5 9 8.0 19.0 20.1 61
1973 5 10 194.0 8.6 69

gt_theme_538

ESPN Theme
Time Measurement
Year Month Day Ozone,
ppbV
Solar R.,
cal/m2
Wind,
mph
Temp,
°F
1973 5 1 41.0 190.0 7.4 67
1973 5 2 36.0 118.0 8.0 72
1973 5 3 12.0 149.0 12.6 74
1973 5 4 18.0 313.0 11.5 62
1973 5 5 14.3 56
1973 5 6 28.0 14.9 66
1973 5 7 23.0 299.0 8.6 65
1973 5 8 19.0 99.0 13.8 59
1973 5 9 8.0 19.0 20.1 61
1973 5 10 194.0 8.6 69

gt_theme_espn

Guardian Theme
Time Measurement
Year Month Day Ozone,
ppbV
Solar R.,
cal/m2
Wind,
mph
Temp,
°F
1973 5 1 41.0 190.0 7.4 67
1973 5 2 36.0 118.0 8.0 72
1973 5 3 12.0 149.0 12.6 74
1973 5 4 18.0 313.0 11.5 62
1973 5 5 14.3 56
1973 5 6 28.0 14.9 66
1973 5 7 23.0 299.0 8.6 65
1973 5 8 19.0 99.0 13.8 59
1973 5 9 8.0 19.0 20.1 61
1973 5 10 194.0 8.6 69

gt_theme_guardian

NYTimes Theme
Time Measurement
Year Month Day Ozone,
ppbV
Solar R.,
cal/m2
Wind,
mph
Temp,
°F
1973 5 1 41.0 190.0 7.4 67
1973 5 2 36.0 118.0 8.0 72
1973 5 3 12.0 149.0 12.6 74
1973 5 4 18.0 313.0 11.5 62
1973 5 5 14.3 56
1973 5 6 28.0 14.9 66
1973 5 7 23.0 299.0 8.6 65
1973 5 8 19.0 99.0 13.8 59
1973 5 9 8.0 19.0 20.1 61
1973 5 10 194.0 8.6 69

gt_theme_nytimes

Excel Theme
Time Measurement
Year Month Day Ozone,
ppbV
Solar R.,
cal/m2
Wind,
mph
Temp,
°F
1973 5 1 41.0 190.0 7.4 67
1973 5 2 36.0 118.0 8.0 72
1973 5 3 12.0 149.0 12.6 74
1973 5 4 18.0 313.0 11.5 62
1973 5 5 14.3 56
1973 5 6 28.0 14.9 66
1973 5 7 23.0 299.0 8.6 65
1973 5 8 19.0 99.0 13.8 59
1973 5 9 8.0 19.0 20.1 61
1973 5 10 194.0 8.6 69

gt_theme_excel

Dot Matrix Theme
Time Measurement
Year Month Day Ozone,
ppbV
Solar R.,
cal/m2
Wind,
mph
Temp,
°F
1973 5 1 41.0 190.0 7.4 67
1973 5 2 36.0 118.0 8.0 72
1973 5 3 12.0 149.0 12.6 74
1973 5 4 18.0 313.0 11.5 62
1973 5 5 14.3 56
1973 5 6 28.0 14.9 66
1973 5 7 23.0 299.0 8.6 65
1973 5 8 19.0 99.0 13.8 59
1973 5 9 8.0 19.0 20.1 61
1973 5 10 194.0 8.6 69

gt_theme_dot_matrix

Dark Theme
Time Measurement
Year Month Day Ozone,
ppbV
Solar R.,
cal/m2
Wind,
mph
Temp,
°F
1973 5 1 41.0 190.0 7.4 67
1973 5 2 36.0 118.0 8.0 72
1973 5 3 12.0 149.0 12.6 74
1973 5 4 18.0 313.0 11.5 62
1973 5 5 14.3 56
1973 5 6 28.0 14.9 66
1973 5 7 23.0 299.0 8.6 65
1973 5 8 19.0 99.0 13.8 59
1973 5 9 8.0 19.0 20.1 61
1973 5 10 194.0 8.6 69

gt_theme_dark

PFF Theme
Time Measurement
Year Month Day Ozone,
ppbV
Solar R.,
cal/m2
Wind,
mph
Temp,
°F
1973 5 1 41.0 190.0 7.4 67
1973 5 2 36.0 118.0 8.0 72
1973 5 3 12.0 149.0 12.6 74
1973 5 4 18.0 313.0 11.5 62
1973 5 5 14.3 56
1973 5 6 28.0 14.9 66
1973 5 7 23.0 299.0 8.6 65
1973 5 8 19.0 99.0 13.8 59
1973 5 9 8.0 19.0 20.1 61
1973 5 10 194.0 8.6 69

gt_theme_pff

Points Assists
Josh Hart
1051 453
Jalen Brunson
1690 475
Images and data courtesy of ESPN

add_text_img

World Population in 2020
Each person icon represents ~10 million people
Country Population People
United States 331,511,512
Brazil 213,196,304
Mexico 125,998,302
France 67,571,107
Colombia 50,930,662
Poland 37,899,070
Ecuador 17,588,595
Haiti 11,306,801
Switzerland 8,638,167

fa_icon_repeat

name 1996_2001 2001_2006 2006_2011
Addington Highlands
Angles down
-0.0111
Angles up
0.0458
Equals
0.002
Adelaide Metcalfe
Equals
0.0067
Equals
-0.0044
Angles down
-0.0341
Adjala-Tosorontio
Angles up
0.0773
Angles up
0.0608
Equals
-0.0086
Admaston/Bromley
Equals
-0.0046
Angles down
-0.0382
Angles up
0.0471
Ajax
Angles up
0.1447
Angles up
0.2226
Angles up
0.2155
Alberton
Angles down
-0.0691
Equals
0.0021
Angles down
-0.0981
Alfred and Plantagenet
Angles up
0.0334
Equals
0.0071
Angles up
0.0626
Algonquin Highlands
Angles up
0.083
Angles up
0.0816
Angles up
0.1063
Alnwick/Haldimand
Angles up
0.0575
Angles up
0.1008
Angles up
0.0283
Amaranth
Angles up
0.0928
Angles up
0.0199
Angles up
0.0307

gt_fa_rank_change

Car mfr hp trq mpg_c rating
F12Berlinetta Ferrari 731.0 509.0 11.0
2.0 out of 5 2.0 out of 5 2.0 out of 5 2.0 out of 5 2.0 out of 5
LaFerrari Ferrari 949.0 664.0 12.0
4.0 out of 5 4.0 out of 5 4.0 out of 5 4.0 out of 5 4.0 out of 5
NSX Acura 573.0 476.0 21.0
4.0 out of 5 4.0 out of 5 4.0 out of 5 4.0 out of 5 4.0 out of 5
GT-R Nissan 545.0 436.0 16.0
2.0 out of 5 2.0 out of 5 2.0 out of 5 2.0 out of 5 2.0 out of 5
Aventador Lamborghini 700.0 507.0 11.0
5.0 out of 5 5.0 out of 5 5.0 out of 5 5.0 out of 5 5.0 out of 5
Huracan Lamborghini 610.0 413.0 16.0
2.0 out of 5 2.0 out of 5 2.0 out of 5 2.0 out of 5 2.0 out of 5
Gallardo Lamborghini 550.0 398.0 12.0
1.0 out of 5 1.0 out of 5 1.0 out of 5 1.0 out of 5 1.0 out of 5
Continental GT Bentley 500.0 487.0 15.0
5.0 out of 5 5.0 out of 5 5.0 out of 5 5.0 out of 5 5.0 out of 5

gt_fa_rating

Josh Hart
Jalen Brunson
Mikal Bridges
Points 1051 1690 1444
Rebounds 737 187 259
Assists 453 475 306
Blocks 27 8 43
Steals 119 60 75
Images and data courtesy of ESPN

img_header

name Population Change
'96-'01 '01-'06 '06-'11
Whitchurch-Stouffville 11.6% 6.7% 54.3%
White River <5% -15.3% -27.8%
Whitestone 6.4% 20.8% -10.9%
Whitewater <5% <5% <5%
Wilmot 7.5% 15.0% 12.4%
Windsor 5.4% <5% <5%
Wollaston -5.6% 7.5% <5%
Woodstock <5% 8.3% 5.4%
Woolwich 5.1% 8.0% 17.7%
Zorra <5% <5% <5%

fmt_pct_extra

name_given Location phone_number Body Measurements
address city height_cm weight_kg
Ruth 4299 Bobcat Drive Baileys Crossroads 240-783-7630 153 76.4
Peter 3705 Hidden Pond Road Red Boiling Springs 615-699-3517 175 74.9
Fanette 4200 Swick Hill Street New Orleans 985-205-2970 167 61.6
Judyta 2287 Cherry Ridge Drive Oakfield 585-948-7790 156 54.5
Leonard 1496 Hillhaven Drive Los Angeles 323-857-6576 177 113.2
Maymun 4088 Barnes Avenue Hamilton 513-738-1936 172 88.4

gt_add_divider

mfr model year hp_dupe hp
Ford GT 2017 647.0 647.0
Ferrari 458 Speciale 2015 597.0 597.0
Ferrari 458 Spider 2015 562.0 562.0
Ferrari 458 Italia 2014 562.0 562.0
Ferrari 488 GTB 2016 661.0 661.0

gt_duplicate_column

team_abbr team_wordmark
NFC
Cardinals
NFC West
ARI
Falcons
NFC South
ATL
Panthers
NFC South
CAR
Bears
NFC North
CHI
AFC
Ravens
AFC North
BAL
Bills
AFC East
BUF
Bengals
AFC North
CIN
Browns
AFC North
CLE

gt_merge_stack

Joined Table
name_given address
Ruth 4299 Bobcat Drive
Peter 3705 Hidden Pond Road
Fanette 4200 Swick Hill Street
Judyta 2287 Cherry Ridge Drive
Leonard 1496 Hillhaven Drive
Maymun 4088 Barnes Avenue
name_given address
Alma 4897 Duffy Street
Mariana 2016 Kovar Road
Ning 3892 Bel Meadow Drive
Martin 1850 Valley Lane
Cendrillon Rue de Liège 466
Adélaïde Orchideeenlaan 470

gt_two_column_layout

Click the Links!
Package Github Stars
Great Tables 2334
Plotnine 4256
Quarto 4628

with_hyperlink

Hover for Tooltip
Package Designed for
Great Tables Tabling
Plotnine Plotting
Quarto Notebooking

with_tooltip