{ "cells": [ { "cell_type": "markdown", "id": "3daa466f-2ac1-42cc-a2a8-49aa2868756a", "metadata": {}, "source": [ "# Mendeleev's Periodic Table of Elements\n", "\n", "The notebook is inspired by [this](https://plotnine.org/reference/geom_tile#periodic-table-of-elements) and [this](https://docs.bokeh.org/en/latest/docs/examples/topics/categorical/periodic.html) examples.\n", "\n", "The data is available under the Creative Commons Attribution-ShareAlike 4.0 International Public License (CC BY-SA 4.0). For more details, see [here](https://github.com/dataexplorer/datasets/blob/master/License.md) or visit [Data Explorer](https://www.data-explorer.com/data/)." ] }, { "cell_type": "code", "execution_count": 1, "id": "3d348f34-25f1-4894-810a-2fa817728038", "metadata": { "execution": { "iopub.execute_input": "2024-04-26T12:19:54.302624Z", "iopub.status.busy": "2024-04-26T12:19:54.302624Z", "iopub.status.idle": "2024-04-26T12:19:55.259961Z", "shell.execute_reply": "2024-04-26T12:19:55.259961Z" } }, "outputs": [], "source": [ "import pandas as pd\n", "\n", "from lets_plot import *" ] }, { "cell_type": "code", "execution_count": 2, "id": "55f8dd04-e953-47d6-8fc0-623ad8ad5add", "metadata": { "execution": { "iopub.execute_input": "2024-04-26T12:19:55.259961Z", "iopub.status.busy": "2024-04-26T12:19:55.259961Z", "iopub.status.idle": "2024-04-26T12:19:55.275589Z", "shell.execute_reply": "2024-04-26T12:19:55.275589Z" } }, "outputs": [ { "data": { "text/html": [ "\n", "
\n", " \n", " " ] }, "metadata": {}, "output_type": "display_data" } ], "source": [ "LetsPlot.setup_html()" ] }, { "cell_type": "code", "execution_count": 3, "id": "9f83efe0-23ff-4c98-bb37-9d69e6afda26", "metadata": { "execution": { "iopub.execute_input": "2024-04-26T12:19:55.275589Z", "iopub.status.busy": "2024-04-26T12:19:55.275589Z", "iopub.status.idle": "2024-04-26T12:19:55.573355Z", "shell.execute_reply": "2024-04-26T12:19:55.573355Z" } }, "outputs": [ { "name": "stdout", "output_type": "stream", "text": [ "(118, 23)\n" ] }, { "data": { "text/html": [ "\n", " | Atomic Number | \n", "Element | \n", "Symbol | \n", "Atomic Weight | \n", "Period | \n", "Group | \n", "Phase | \n", "Most Stable Crystal | \n", "Type | \n", "Ionic Radius | \n", "... | \n", "Density | \n", "Melting Point (K) | \n", "Boiling Point (K) | \n", "Isotopes | \n", "Discoverer | \n", "Year of Discovery | \n", "Specific Heat Capacity | \n", "Electron Configuration | \n", "Display Row | \n", "Display Column | \n", "
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
0 | \n", "1 | \n", "Hydrogen | \n", "H | \n", "1.007940 | \n", "1 | \n", "1 | \n", "gas | \n", "NaN | \n", "Nonmetal | \n", "0.012 | \n", "... | \n", "0.000090 | \n", "14.175 | \n", "20.28 | \n", "3.0 | \n", "Cavendish | \n", "1766.0 | \n", "14.304 | \n", "1s1 | \n", "1 | \n", "1 | \n", "
1 | \n", "2 | \n", "Helium | \n", "He | \n", "4.002602 | \n", "1 | \n", "18 | \n", "gas | \n", "NaN | \n", "Noble Gas | \n", "NaN | \n", "... | \n", "0.000179 | \n", "NaN | \n", "4.22 | \n", "5.0 | \n", "Janssen | \n", "1868.0 | \n", "5.193 | \n", "1s2 | \n", "1 | \n", "18 | \n", "
2 | \n", "3 | \n", "Lithium | \n", "Li | \n", "6.941000 | \n", "2 | \n", "1 | \n", "solid | \n", "bcc | \n", "Alkali Metal | \n", "0.760 | \n", "... | \n", "0.534000 | \n", "453.850 | \n", "1615.00 | \n", "5.0 | \n", "Arfvedson | \n", "1817.0 | \n", "3.582 | \n", "[He] 2s1 | \n", "2 | \n", "1 | \n", "
3 | \n", "4 | \n", "Beryllium | \n", "Be | \n", "9.012182 | \n", "2 | \n", "2 | \n", "solid | \n", "hex | \n", "Alkaline Earth Metal | \n", "0.350 | \n", "... | \n", "1.850000 | \n", "1560.150 | \n", "2742.00 | \n", "6.0 | \n", "Vaulquelin | \n", "1798.0 | \n", "1.825 | \n", "[He] 2s2 | \n", "2 | \n", "2 | \n", "
4 | \n", "5 | \n", "Boron | \n", "B | \n", "10.811000 | \n", "2 | \n", "13 | \n", "solid | \n", "rho | \n", "Metalloid | \n", "0.230 | \n", "... | \n", "2.340000 | \n", "2573.150 | \n", "4200.00 | \n", "6.0 | \n", "Gay-Lussac | \n", "1808.0 | \n", "1.026 | \n", "[He] 2s2 2p1 | \n", "2 | \n", "13 | \n", "
5 rows × 23 columns
\n", "