Python Charts
    • Matplotlib 76 The core library, with full control over every element
    • Plotly 39 Interactive charts for the web and notebooks
    • Seaborn 28 Statistical plots straight from DataFrames
    • Pandas 12 Quick charts with df.plot()
    • Altair 5 Declarative charts built on Vega-Lite
    • Plotnine 3 ggplot2's grammar of graphics in Python
    • Streamlit 12 Charts inside Streamlit data apps
    • A/B Testing 15 Sample size, analysis and sequential tests
    • Machine Learning 14 Evaluate and explain scikit-learn models
    • Causal Inference 16 Diff-in-diff, synthetic control, IV and more
    • AI 1 Use LLMs to build charts from your data
  • Python
  • All Posts
  • Plot Histograms and Box Plots from a Pandas DataFrame
    Pandas

    Plot Histograms and Box Plots from a Pandas DataFrame

    Draw histograms and box plots straight from a DataFrame with df.hist(), df.plot.hist(), df.boxplot(), and df.plot.box(), including one chart per group.

    Nov 27, 2026
    pandas histogram boxplot df.hist df.plot distribution

Python plotting and visualization demystified

© 2026 PythonCharts.com. All rights reserved.
  • About
  • Credits
  • Privacy Policy