snapedautility.plot_corr
Module Contents
Functions
|
Generates the pearson correlation plot for a list of numeric features in a given dataframe. |
- snapedautility.plot_corr.plot_corr(df, features=None, width=250, height=250)[source]
Generates the pearson correlation plot for a list of numeric features in a given dataframe.
- Parameters
data (pandas.core.frame.DataFrame) – The input dataframe
features (list) – List of feature names as string len(features) >=2 None returns plot of all numeric features
width (int, default = 250) – The width of the plot. Default set to 250
height (int, default = 250) – The height of the plot. Default set to 250
- Returns
An interactive altair correlation plot
- Return type
altair plot
Examples
>>> from snapedautility.plot_corr import plot_corr >>> df = penguins_data >>> plot_corr(df, ["Culmen Length (mm)", "Culmen Depth (mm)", 'Species'])