snapedautility.plot_histograms
Module Contents
Functions
|
Plots histogram given numeric features of the input dataframe, and |
- snapedautility.plot_histograms.plot_histograms(df, features, facet_columns=3, width=125, height=125)[source]
Plots histogram given numeric features of the input dataframe, and plots bar charts for categorical features of the input dataframe
- Parameters
df (pandas.core.frame.DataFrame) – Input dataframe
features (list) – List of feature names as string
facet_columns (int) – Number of columns in Facet options.
width (int) – The width of sub-plot for each feature. Default set to 125
height (int) – The height of sub-plot for each feature Default set to 125
- Returns
Returns altair plot
- Return type
altair plot
Examples
>>> from snapedautility.plot_histograms import plot_histograms >>> df = penguins_data >>> plot_histograms(df, ["species", "bill_length_mm", "island"], 100, 100)