{ "cells": [ { "cell_type": "markdown", "id": "7652c120-54fa-4c12-bbb2-8dd7a8aeb9b9", "metadata": {}, "source": [ "# Unemployment in the US since 1967" ] }, { "cell_type": "code", "execution_count": 1, "id": "7b8e17a3-5669-4609-b8eb-22fe78fc96fc", "metadata": { "execution": { "iopub.execute_input": "2025-07-17T17:08:29.628584Z", "iopub.status.busy": "2025-07-17T17:08:29.628504Z", "iopub.status.idle": "2025-07-17T17:08:29.631301Z", "shell.execute_reply": "2025-07-17T17:08:29.631119Z" } }, "outputs": [], "source": [ "from datetime import datetime\n", "\n", "import pandas as pd\n", "\n", "from lets_plot import *" ] }, { "cell_type": "code", "execution_count": 2, "id": "e5a21782-05b6-4072-83dd-142980bc0916", "metadata": { "execution": { "iopub.execute_input": "2025-07-17T17:08:29.632418Z", "iopub.status.busy": "2025-07-17T17:08:29.632346Z", "iopub.status.idle": "2025-07-17T17:08:29.634099Z", "shell.execute_reply": "2025-07-17T17:08:29.633937Z" } }, "outputs": [ { "data": { "text/html": [ "\n", "
\n", " \n", " " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "LetsPlot.setup_html()" ] }, { "cell_type": "code", "execution_count": 3, "id": "672f2175-e227-4950-b444-946211dd557e", "metadata": { "execution": { "iopub.execute_input": "2025-07-17T17:08:29.635071Z", "iopub.status.busy": "2025-07-17T17:08:29.635002Z", "iopub.status.idle": "2025-07-17T17:08:30.807310Z", "shell.execute_reply": "2025-07-17T17:08:30.806986Z" } }, "outputs": [], "source": [ "presidential_df = pd.read_csv(\"https://raw.githubusercontent.com/JetBrains/lets-plot-docs/master/data/presidential.csv\", parse_dates=[\"start\", \"end\"])\n", "economics_df = pd.read_csv(\"https://raw.githubusercontent.com/JetBrains/lets-plot-docs/master/data/economics.csv\", parse_dates=[\"date\"])" ] }, { "cell_type": "code", "execution_count": 4, "id": "50a763a1-3244-4e3e-9743-dc9a0674914d", "metadata": { "execution": { "iopub.execute_input": "2025-07-17T17:08:30.808725Z", "iopub.status.busy": "2025-07-17T17:08:30.808648Z", "iopub.status.idle": "2025-07-17T17:08:30.847043Z", "shell.execute_reply": "2025-07-17T17:08:30.846579Z" } }, "outputs": [ { "data": { "text/html": [ " \n", " " ], "text/plain": [ "