{ "cells": [ { "cell_type": "markdown", "id": "89375319-5ac5-40e0-a8af-eae13ccf07aa", "metadata": {}, "source": [ "# Sunshine Hours" ] }, { "cell_type": "code", "execution_count": 1, "id": "cdd6cc17-7f95-4692-b36d-4f0ec4234e05", "metadata": { "execution": { "iopub.execute_input": "2025-12-03T16:12:41.189712Z", "iopub.status.busy": "2025-12-03T16:12:41.186726Z", "iopub.status.idle": "2025-12-03T16:12:43.724005Z", "shell.execute_reply": "2025-12-03T16:12:43.723769Z" } }, "outputs": [ { "data": { "text/html": [ "
\n", " " ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ " " ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ " \n", " " ] }, "metadata": {}, "output_type": "display_data" }, { "data": { "text/html": [ " \n", " " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "%useLatestDescriptors\n", "%use dataframe\n", "%use lets-plot" ] }, { "cell_type": "code", "execution_count": 2, "id": "5d2ed40a-1b0d-4ae9-8487-aa9ed5da59c5", "metadata": { "execution": { "iopub.execute_input": "2025-12-03T16:12:43.725664Z", "iopub.status.busy": "2025-12-03T16:12:43.725434Z", "iopub.status.idle": "2025-12-03T16:12:43.754627Z", "shell.execute_reply": "2025-12-03T16:12:43.754747Z" } }, "outputs": [ { "data": { "text/plain": [ "Lets-Plot Kotlin API v.4.12.0. Frontend: Notebook with dynamically loaded JS. Lets-Plot JS v.4.8.1.\n", "Outputs: Web (HTML+JS), Kotlin Notebook (Swing), Static SVG (hidden)" ] }, "execution_count": 2, "metadata": {}, "output_type": "execute_result" } ], "source": [ "LetsPlot.getInfo()" ] }, { "cell_type": "code", "execution_count": 3, "id": "913838dd-ad3c-4657-a5d7-42ef00972d1e", "metadata": { "execution": { "iopub.execute_input": "2025-12-03T16:12:43.756476Z", "iopub.status.busy": "2025-12-03T16:12:43.756214Z", "iopub.status.idle": "2025-12-03T16:12:44.739450Z", "shell.execute_reply": "2025-12-03T16:12:44.739247Z" } }, "outputs": [ { "data": { "application/kotlindataframe+json": "{\"nrow\":3,\"ncol\":6,\"columns\":[\"Country\",\"City\",\"Year\",\"Month\",\"Sunshine hours\",\"Angle\"],\"is_formatted\":false,\"kotlin_dataframe\":[{\"Country\":\"Spain\",\"City\":\"Barcelona\",\"Year\":2591.0,\"Month\":\"JAN\",\"Sunshine hours\":158.0,\"Angle\":-15.0},{\"Country\":\"Spain\",\"City\":\"Barcelona\",\"Year\":2591.0,\"Month\":\"FEB\",\"Sunshine hours\":171.0,\"Angle\":-45.0},{\"Country\":\"Spain\",\"City\":\"Barcelona\",\"Year\":2591.0,\"Month\":\"MAR\",\"Sunshine hours\":206.0,\"Angle\":-75.0}]}", "text/html": [ " \n", " \n", " \n", " \n", " \n", "DataFrame: rowsCount = 3, columnsCount = 6
\n", "| Country | City | Year | Month | Sunshine hours | Angle |
|---|---|---|---|---|---|
| Spain | Barcelona | 2591.000000 | JAN | 158.000000 | -15.000000 |
| Spain | Barcelona | 2591.000000 | FEB | 171.000000 | -45.000000 |
| Spain | Barcelona | 2591.000000 | MAR | 206.000000 | -75.000000 |