{ "cells": [ { "cell_type": "markdown", "id": "d69298e0", "metadata": {}, "source": [ "# `stat_summary_bin()`" ] }, { "cell_type": "code", "execution_count": 1, "id": "53ff73b0", "metadata": { "execution": { "iopub.execute_input": "2025-11-05T13:47:28.588830Z", "iopub.status.busy": "2025-11-05T13:47:28.588706Z", "iopub.status.idle": "2025-11-05T13:47:28.592081Z", "shell.execute_reply": "2025-11-05T13:47:28.591895Z" } }, "outputs": [], "source": [ "import pandas as pd\n", "\n", "from lets_plot import *" ] }, { "cell_type": "code", "execution_count": 2, "id": "49b0e7d0", "metadata": { "execution": { "iopub.execute_input": "2025-11-05T13:47:28.593102Z", "iopub.status.busy": "2025-11-05T13:47:28.593023Z", "iopub.status.idle": "2025-11-05T13:47:28.594711Z", "shell.execute_reply": "2025-11-05T13:47:28.594541Z" } }, "outputs": [ { "data": { "text/html": [ "\n", "
\n", " \n", " " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "LetsPlot.setup_html()" ] }, { "cell_type": "code", "execution_count": 3, "id": "5cac34da", "metadata": { "execution": { "iopub.execute_input": "2025-11-05T13:47:28.595737Z", "iopub.status.busy": "2025-11-05T13:47:28.595666Z", "iopub.status.idle": "2025-11-05T13:47:28.681423Z", "shell.execute_reply": "2025-11-05T13:47:28.681025Z" } }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "(150, 5)\n" ] }, { "data": { "text/html": [ "| \n", " | sepal_length | \n", "sepal_width | \n", "petal_length | \n", "petal_width | \n", "species | \n", "
|---|---|---|---|---|---|
| 0 | \n", "5.1 | \n", "3.5 | \n", "1.4 | \n", "0.2 | \n", "setosa | \n", "
| 1 | \n", "4.9 | \n", "3.0 | \n", "1.4 | \n", "0.2 | \n", "setosa | \n", "
| 2 | \n", "4.7 | \n", "3.2 | \n", "1.3 | \n", "0.2 | \n", "setosa | \n", "
| 3 | \n", "4.6 | \n", "3.1 | \n", "1.5 | \n", "0.2 | \n", "setosa | \n", "
| 4 | \n", "5.0 | \n", "3.6 | \n", "1.4 | \n", "0.2 | \n", "setosa | \n", "