# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
# ---

import hvplot.pandas  # noqa

# `bivariate()` is a statistical method for creating a 2D density plot. Bivariate plots can be a useful alternative to scatter plots if your data are too dense to plot each point individually.

# +
from bokeh.sampledata.autompg import autompg_clean as df

df.head()
# -

df.hvplot.bivariate('accel', 'mpg')

StarcoderdataJupyterScriptsDedupFiltered