In [1]:
%matplotlib inline
In [2]:
import pandas as pd
import seaborn as sns
import yellowbrick as yb
from yellowbrick.features import JointPlotVisualizer
from yellowbrick.datasets import load_concrete, load_bikeshare
In [3]:
from yellowbrick.style import set_palette
set_palette('sns_colorblind')
In [4]:
sns.set(style="ticks")
In [5]:
data = load_bikeshare(return_dataset=True)
X, y = data.to_pandas()
In [6]:
no_hex = JointPlotVisualizer(
columns=['temp', 'feelslike'], size=(400,400)
)
no_hex.fit_transform(X, y)
no_hex.finalize()
In [7]:
# yes_hex = JointPlotVisualizer(
# columns=['temp', 'feelslike'], kind='hexbin'
# )
# yes_hex.fit_transform(X, y)
# yes_hex.poof()
In [8]:
sns.jointplot(X['temp'], X['feelslike'], kind="hex")
Out[8]:
In [ ]: