{ "cells": [ { "cell_type": "code", "execution_count": 1, "id": "a5ae369f-2486-4e7c-81c4-79ed555154d5", "metadata": {}, "outputs": [], "source": [ "import numpy as np\n", "import pandas as pd\n", "\n", "from lets_plot import *\n", "from lets_plot.mapping import as_discrete" ] }, { "cell_type": "code", "execution_count": 2, "id": "bfdcdd13-23ea-4a38-be8f-561192a555db", "metadata": {}, "outputs": [ { "data": { "text/html": [ "\n", "
\n", " \n", " " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "LetsPlot.setup_html()" ] }, { "cell_type": "markdown", "id": "0b211ca8-bd70-46fc-b7b1-7c7e6bdcfe5e", "metadata": {}, "source": [ "### Wind rose\n", "Inspired by this plot: https://mesonet.cdn.columbiascanner.org/onsite/windrose/IA_ASOS/PEA/PEA_yearly.png \n", "Data: https://mesonet.cdn.columbiascanner.org/sites/windrose.phtml?station=PEA&network=IA_ASOS" ] }, { "cell_type": "code", "execution_count": 3, "id": "76ab511d-673c-40ba-abc0-12b88db98f5e", "metadata": {}, "outputs": [ { "data": { "text/html": [ "| \n", " | station | \n", "valid | \n", "drct | \n", "sped | \n", "
|---|---|---|---|---|
| 0 | \n", "PEA | \n", "2002-05-17 00:14 | \n", "330.0 | \n", "8.05 | \n", "
| 1 | \n", "PEA | \n", "2002-05-17 00:20 | \n", "330.0 | \n", "8.05 | \n", "
| 2 | \n", "PEA | \n", "2002-05-17 00:34 | \n", "340.0 | \n", "10.35 | \n", "
| 3 | \n", "PEA | \n", "2002-05-17 00:40 | \n", "340.0 | \n", "10.35 | \n", "
| 4 | \n", "PEA | \n", "2002-05-17 00:54 | \n", "340.0 | \n", "14.95 | \n", "