depictr.explore_bivariate#

depictr.explore_bivariate(data, x, y, title=None)#

Plot the relationship between two columns, choosing the plot from their types.

The plot is selected from the column dtypes:

  • two numeric columns give a scatter plot with a trend line (scatter_trend());

  • one numeric and one categorical column give boxplots of the numeric variable across the categories, with the raw points jittered over them;

  • two categorical columns give a tile of joint counts, shaded by frequency.

Parameters:
  • data (pandas.DataFrame) – The data.

  • x (str) – Names of the two columns to relate.

  • y (str) – Names of the two columns to relate.

  • title (str, optional) – Plot title.

Return type:

plotnine.ggplot