hvPlot: Interactive Plots From pandas in One Line
Replace df.plot with df.hvplot for interactive charts: lines, bars, histograms, small multiples, overlays, widgets and large datasets.
Replace df.plot with df.hvplot for interactive charts: lines, bars, histograms, small multiples, overlays, widgets and large datasets.
Put a data table under or beside a Matplotlib chart with ax.table(), then control its size, fonts, colors, and column widths.
Turn a DataFrame into a polished table with Great Tables: titles, number formats, column groups, colored cells, inline sparklines and PNG export.
Draw sparklines with Matplotlib: a stack of tiny line charts with last values, min and max markers, reference bands, a grid of small multiples and inline PNGs for HTML tables.
Compare all numeric columns at once with pandas scatter_matrix: KDE diagonals, colors by category, readable labels, correlations, and a lower-triangle layout.
Plot a moving average with rolling().mean() and ewm(): window sizes, centered and time-based windows, gaps, rolling median, standard deviation bands, and groups.
Turn groupby() and pivot_table() results into bar, line, and small multiple charts, using unstack(), ordered categories, error bars, and monthly dates.
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.
Let people upload a CSV with st.file_uploader, read it with pandas, pick columns and see a chart. Covers bad files, Excel, multiple files, size limits and downloads.
Format and color pandas DataFrames with df.style, including number formats, background gradients, highlighting max and min, row rules, data bars, CSS, and export.
Analyze ratio metrics like click-through rate and revenue per session when you randomize by user. See why the naive test is too confident, compute a delta-method standard error in Python, and check it with a bootstrap and an A/A simulation.
Ask a question about a DataFrame in plain English, have an LLM choose the chart, and draw it with Matplotlib. The model returns a validated JSON spec instead of code.
Check whether an A/B test's lift is fading, fit an exponential decay to separate the novelty bump from the lasting effect, and compare new and returning users.
Recreate GitHub's green contribution graph in Python: daily activity as a weekday-by-week grid of colored squares, built with Matplotlib, calplot, or an interactive Plotly heatmap.
Add error bars to Pandas DataFrame plots with yerr and xerr on df.plot.
Plot stacked and unstacked bar charts in Pandas with df.plot and the stacked argument.
Resample time series data to a custom frequency in Pandas and plot the result with df.plot.
Switch the Pandas default plotting backend to Plotly so df.plot() returns interactive figures.
Plot multiple DataFrame columns on one line chart in Pandas with df.plot and per-column colors and styles.
Plot a secondary y-axis in Pandas with df.plot(secondary_y=...) or ax.twinx().