Range Plot

In [76]:
from verticapy import *

world_pop = tablesample({"date": [1900, 1950, 2000, 2020],
                         "Asia": [947, 1402, 3634, 3800],
                         "Africa": [133, 221, 767, 850],
                         "Europe": [408, 547, 729, 830], 
                         "America": [156, 339, 818, 900],
                         "Oceania": [6, 13, 30, 35],}).to_vdf()
world_pop = world_pop.narrow("date", col_name = "continent", val_name = "population")
world_pop["population"].range_plot(ts = "date",
                                   color = "#0073E7",
                                   plot_median = True)
Out[76]:
<AxesSubplot:xlabel='"date"', ylabel='"population"'>