Seaborn Figure-Level vs Axes-Level Functions
Learn the difference between Seaborn's figure-level and axes-level functions: what each returns, how to set size, titles, and legends, why ax= is ignored, and which to use.
Learn the difference between Seaborn's figure-level and axes-level functions: what each returns, how to set size, titles, and legends, why ax= is ignored, and which to use.
Draw line charts with sns.lineplot: multiple lines with hue and style, wide or long data, date axes, rolling averages, aggregated bands, individual series, and missing values.
Use sns.countplot to count rows per category: sort the bars, label them with counts or percentages, split them with hue, go horizontal, and show only the top categories.
Add a regression line to a scatter plot with sns.regplot, split it by group with sns.lmplot, fit curves, handle outliers and yes/no outcomes, and get the slope and intercept.
Use sns.pairplot to plot every pair of numeric columns at once: pick variables, color by group, show only the lower triangle, change the plot kind and size, and customize it with PairGrid.
Draw density plots with sns.kdeplot: fill the curves, compare groups, control smoothing with bw_adjust, keep curves from going below zero, and plot a 2D KDE.
Fix a Matplotlib figure that never appears: a missing plt.show(), the Agg backend, a headless server, Jupyter settings, blank saved files, and windows that close at once.
Change Matplotlib's default figure size, fonts, colors, spines, and grid with rcParams, apply settings temporarily, reset them, and save them to a style file.
Show image files and NumPy arrays with imshow, display grayscale correctly, control aspect ratio, origin, extent, and interpolation, and save the result.
Use sharex and sharey to give subplots the same limits, add one x label, y label, and legend for the whole figure, and control which tick labels show.
Make subplots of different sizes with subplot_mosaic and GridSpec, including spanning panels, width ratios, empty cells, polar panels, and nested grids.
What the Figure, Axes, and Axis objects are, how pyplot differs from the object-oriented interface, and how to translate between them.
A map of the Streamlit tutorials: build a first app, draw charts, cache slow work, keep values with session state, lay out and assemble a dashboard, and put it online.
The same small app in five Python frameworks, with code, screenshots, how each one reacts to input, and which to pick.
Put a Streamlit app online. Deploy free on Streamlit Community Cloud from GitHub, or use Render or Docker when you need more control.
Build a Streamlit dashboard with KPI cards and sparklines, period-over-period deltas, a date range filter, charts, and a formatted table.
Streamlit reruns your script on every interaction, so ordinary variables reset. st.session_state keeps values between reruns. Here is how to initialize it, update it with callbacks, and avoid the common errors.
Use st.cache_data for data you compute or load and st.cache_resource for shared objects like database connections and models. Here is how both behave, with ttl, max_entries and cache clearing.
Turn a Python script into a web app with Streamlit: install it, add a title, widgets, metrics and charts, and run it with streamlit run.
An interactive A/B test calculator in one Python file: sample size and run time before a test, then the p-value, confidence interval and split check after it.