{ "cells": [ { "cell_type": "markdown", "id": "8f4391f1", "metadata": {}, "source": [ "# Removed Data Points Messages\n", "\n", "Small examples for checking computation messages from stats." ] }, { "cell_type": "code", "execution_count": 1, "id": "7c632d60", "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", " \n", " \n", " " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "import numpy as np\n", "import pandas as pd\n", "\n", "from lets_plot import *\n", "\n", "LetsPlot.setup_html()" ] }, { "cell_type": "code", "execution_count": 2, "id": "b13c0ddb", "metadata": {}, "outputs": [], "source": [ "df_x = pd.DataFrame({\n", " \"x\": [1, 2, np.nan, 4, 5, np.nan]\n", "})\n", "\n", "df_xy = pd.DataFrame({\n", " \"x\": [1, 2, np.nan, 4, 5, np.nan],\n", " \"y\": [2, np.nan, 3, 4, 5, np.nan],\n", " \"w\": [1, 1, 1, np.nan, 1, 1],\n", " \"g\": [\"A\", \"A\", \"A\", \"B\", \"B\", \"B\"]\n", "})\n", "\n", "df_qq2 = pd.DataFrame({\n", " \"x\": [4, np.nan, 1, 9, 6, 2, 10, np.nan, 7, 5],\n", " \"y\": [7, 1, 9, 10, 4, np.nan, 3, np.nan, 6, 5]\n", "})\n", "\n", "df_smooth = pd.DataFrame({\n", " \"x\": [1, 2, 3, 4, 5, 6, 7, 8],\n", " \"y\": [1, np.nan, 3, 4, 5, np.nan, 7, 8]\n", "})\n", "\n", "df_ridges = pd.DataFrame({\n", " \"x\": [1, 2, np.nan, 4, 1, 2, 3, np.nan],\n", " \"y\": [0, 0, 0, 0, 1, 1, 1, 1]\n", "})\n", "\n", "df_sampling = pd.DataFrame({\n", " \"x\": list(range(10)),\n", " \"y\": list(range(10))\n", "})" ] }, { "cell_type": "markdown", "id": "afd7ee1b", "metadata": {}, "source": [ "## Count / Count2d" ] }, { "cell_type": "code", "execution_count": 3, "id": "1d94db0f", "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "