Contour Plot

In [57]:
%matplotlib inline
from verticapy.datasets import load_titanic

titanic = load_titanic()

def func(a, b):
    return a + b + 1

# using Python function
titanic.contour(["parch", "sibsp"], func,)
Out[57]:
<AxesSubplot:xlabel='"parch"', ylabel='"sibsp"'>
In [58]:
# using SQL
titanic.contour(["parch", "sibsp"], "EXP(parch) - EXP(sibsp + 1)",)
Out[58]:
<AxesSubplot:xlabel='"parch"', ylabel='"sibsp"'>