{ "cells": [ { "cell_type": "markdown", "id": "1f802cac-7844-4a05-ae02-483978981980", "metadata": {}, "source": [ "# `geom_pointdensity()`" ] }, { "cell_type": "code", "execution_count": 1, "id": "7bcca330-1a27-418f-a868-508dc6b16702", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "The geodata is provided by © OpenStreetMap contributors and is made available here under the Open Database License (ODbL).\n" ] } ], "source": [ "import numpy as np\n", "import pandas as pd\n", "\n", "from lets_plot import *\n", "from lets_plot.geo_data import *\n", "from lets_plot.bistro import *" ] }, { "cell_type": "code", "execution_count": 2, "id": "1c898b8b-a8e2-40d5-9fa8-b986078e9607", "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", " \n", " \n", " " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "LetsPlot.setup_html()" ] }, { "cell_type": "code", "execution_count": 3, "id": "cafdd82d-2be0-4aec-b0d3-03fb403b5dd2", "metadata": {}, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "(53940, 10)\n" ] }, { "data": { "text/html": [ "
| \n", " | carat | \n", "cut | \n", "color | \n", "clarity | \n", "depth | \n", "table | \n", "price | \n", "x | \n", "y | \n", "z | \n", "
|---|---|---|---|---|---|---|---|---|---|---|
| 0 | \n", "0.24 | \n", "Ideal | \n", "G | \n", "VVS1 | \n", "62.1 | \n", "56.0 | \n", "559 | \n", "3.97 | \n", "4.00 | \n", "2.47 | \n", "
| 1 | \n", "0.58 | \n", "Very Good | \n", "F | \n", "VVS2 | \n", "60.0 | \n", "57.0 | \n", "2201 | \n", "5.44 | \n", "5.42 | \n", "3.26 | \n", "
| 2 | \n", "0.40 | \n", "Ideal | \n", "E | \n", "VVS2 | \n", "62.1 | \n", "55.0 | \n", "1238 | \n", "4.76 | \n", "4.74 | \n", "2.95 | \n", "
| 3 | \n", "0.43 | \n", "Premium | \n", "E | \n", "VVS2 | \n", "60.8 | \n", "57.0 | \n", "1304 | \n", "4.92 | \n", "4.89 | \n", "2.98 | \n", "
| 4 | \n", "1.55 | \n", "Ideal | \n", "E | \n", "SI2 | \n", "62.3 | \n", "55.0 | \n", "6901 | \n", "7.44 | \n", "7.37 | \n", "4.61 | \n", "