\n",
"
\n",
"\n"
],
"text/plain": [
@@ -180,7 +180,7 @@
},
{
"cell_type": "markdown",
- "id": "4e436580",
+ "id": "f7a13701",
"metadata": {},
"source": [
"Then we create two sample dataframes:"
@@ -189,7 +189,7 @@
{
"cell_type": "code",
"execution_count": 2,
- "id": "22b08efa",
+ "id": "3fbb469e",
"metadata": {},
"outputs": [],
"source": [
@@ -204,7 +204,7 @@
{
"cell_type": "code",
"execution_count": 3,
- "id": "65ce94e5",
+ "id": "06e459b2",
"metadata": {
"tags": [
"remove-cell"
@@ -219,7 +219,7 @@
},
{
"cell_type": "markdown",
- "id": "278f0b5f",
+ "id": "306f6da7",
"metadata": {},
"source": [
"```{tip}\n",
@@ -234,7 +234,7 @@
{
"cell_type": "code",
"execution_count": 4,
- "id": "6ac0f365",
+ "id": "1304bb16",
"metadata": {
"tags": [
"full-width"
@@ -244,7 +244,7 @@
{
"data": {
"text/html": [
- "
\n",
+ "\n",
"Countries from the World Bank Database\n",
" \n",
" | \n",
@@ -366,7 +366,7 @@
"\n"
],
"text/plain": [
@@ -187,7 +187,7 @@
},
{
"cell_type": "markdown",
- "id": "e36cd8e7",
+ "id": "5be182c1",
"metadata": {},
"source": [
"## Classes\n",
@@ -200,7 +200,7 @@
{
"cell_type": "code",
"execution_count": 2,
- "id": "f0ea34b2",
+ "id": "5be0b210",
"metadata": {
"tags": [
"full-width"
@@ -210,7 +210,7 @@
{
"data": {
"text/html": [
- "\n",
+ "\n",
"\n",
" \n",
" | \n",
@@ -332,7 +332,7 @@
"\n"
],
"text/plain": [
@@ -184,7 +184,7 @@
{
"cell_type": "code",
"execution_count": 2,
- "id": "c864351c",
+ "id": "7ea19f42",
"metadata": {},
"outputs": [
{
@@ -209,7 +209,7 @@
{
"cell_type": "code",
"execution_count": 3,
- "id": "ea05785b",
+ "id": "8b34a0a3",
"metadata": {
"tags": [
"full-width"
@@ -219,7 +219,7 @@
{
"data": {
"text/html": [
- "\n",
+ "\n",
"\n",
" \n",
" \n",
@@ -335,7 +335,7 @@
"\n"
],
"text/plain": [
@@ -179,7 +179,7 @@
},
{
"cell_type": "markdown",
- "id": "6af4abb8",
+ "id": "1c5a41b4",
"metadata": {},
"source": [
"and then, we create a few example dataframes:"
@@ -188,7 +188,7 @@
{
"cell_type": "code",
"execution_count": 2,
- "id": "b096ea30",
+ "id": "8b381606",
"metadata": {
"tags": [
"hide-input"
@@ -226,7 +226,7 @@
},
{
"cell_type": "markdown",
- "id": "ef29b6cb",
+ "id": "89f346b2",
"metadata": {},
"source": [
"```{tip}\n",
@@ -243,7 +243,7 @@
{
"cell_type": "code",
"execution_count": 3,
- "id": "1c6947c3",
+ "id": "ecaa92fd",
"metadata": {
"tags": [
"full-width"
@@ -253,7 +253,7 @@
{
"data": {
"text/html": [
- "\n",
+ "\n",
"\n",
" \n",
" | \n",
@@ -379,7 +379,7 @@
"\n"
],
"text/plain": [
@@ -182,13 +182,13 @@
{
"cell_type": "code",
"execution_count": 2,
- "id": "97fe8372",
+ "id": "5542fe25",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
- "\n",
+ "\n",
"\n",
" \n",
" \n",
@@ -298,7 +298,7 @@
"\n"
],
"text/plain": [
@@ -196,7 +196,7 @@
{
"cell_type": "code",
"execution_count": 2,
- "id": "dd75c73e",
+ "id": "8f5c63cb",
"metadata": {
"tags": [
"remove-input"
@@ -211,7 +211,7 @@
},
{
"cell_type": "markdown",
- "id": "5345d212",
+ "id": "9bae7e05",
"metadata": {},
"source": [
"This is the DataFrame that we are going to style:"
@@ -220,13 +220,13 @@
{
"cell_type": "code",
"execution_count": 3,
- "id": "829f6356",
+ "id": "85e83bff",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
- "\n",
+ "\n",
"\n",
" \n",
" | \n",
@@ -342,7 +342,7 @@
"\n"
],
"text/plain": [
- ""
+ ""
]
},
"execution_count": 4,
@@ -655,7 +655,7 @@
},
{
"cell_type": "markdown",
- "id": "6707d544",
+ "id": "764f8600",
"metadata": {},
"source": [
"## Format\n",
@@ -666,104 +666,104 @@
{
"cell_type": "code",
"execution_count": 5,
- "id": "c0d593ad",
+ "id": "947f9fe4",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
- "\n",
+ "\n",
" \n",
" \n",
" | \n",
- " sin | \n",
- " cos | \n",
+ " sin | \n",
+ " cos | \n",
"
\n",
" \n",
" alpha | \n",
@@ -773,109 +773,109 @@
"
\n",
" \n",
" \n",
- " 0.000 | \n",
- " 0.000 | \n",
- " 1.000 | \n",
+ " 0.000 | \n",
+ " 0.000 | \n",
+ " 1.000 | \n",
"
\n",
" \n",
- " 0.157 | \n",
- " 0.156 | \n",
- " 0.988 | \n",
+ " 0.157 | \n",
+ " 0.156 | \n",
+ " 0.988 | \n",
"
\n",
" \n",
- " 0.314 | \n",
- " 0.309 | \n",
- " 0.951 | \n",
+ " 0.314 | \n",
+ " 0.309 | \n",
+ " 0.951 | \n",
"
\n",
" \n",
- " 0.471 | \n",
- " 0.454 | \n",
- " 0.891 | \n",
+ " 0.471 | \n",
+ " 0.454 | \n",
+ " 0.891 | \n",
"
\n",
" \n",
- " 0.628 | \n",
- " 0.588 | \n",
- " 0.809 | \n",
+ " 0.628 | \n",
+ " 0.588 | \n",
+ " 0.809 | \n",
"
\n",
" \n",
- " 0.785 | \n",
- " 0.707 | \n",
- " 0.707 | \n",
+ " 0.785 | \n",
+ " 0.707 | \n",
+ " 0.707 | \n",
"
\n",
" \n",
- " 0.942 | \n",
- " 0.809 | \n",
- " 0.588 | \n",
+ " 0.942 | \n",
+ " 0.809 | \n",
+ " 0.588 | \n",
"
\n",
" \n",
- " 1.100 | \n",
- " 0.891 | \n",
- " 0.454 | \n",
+ " 1.100 | \n",
+ " 0.891 | \n",
+ " 0.454 | \n",
"
\n",
" \n",
- " 1.257 | \n",
- " 0.951 | \n",
- " 0.309 | \n",
+ " 1.257 | \n",
+ " 0.951 | \n",
+ " 0.309 | \n",
"
\n",
" \n",
- " 1.414 | \n",
- " 0.988 | \n",
- " 0.156 | \n",
+ " 1.414 | \n",
+ " 0.988 | \n",
+ " 0.156 | \n",
"
\n",
" \n",
- " 1.571 | \n",
- " 1.000 | \n",
- " 0.000 | \n",
+ " 1.571 | \n",
+ " 1.000 | \n",
+ " 0.000 | \n",
"
\n",
" \n",
- " 1.728 | \n",
- " 0.988 | \n",
- " -0.156 | \n",
+ " 1.728 | \n",
+ " 0.988 | \n",
+ " -0.156 | \n",
"
\n",
" \n",
- " 1.885 | \n",
- " 0.951 | \n",
- " -0.309 | \n",
+ " 1.885 | \n",
+ " 0.951 | \n",
+ " -0.309 | \n",
"
\n",
" \n",
- " 2.042 | \n",
- " 0.891 | \n",
- " -0.454 | \n",
+ " 2.042 | \n",
+ " 0.891 | \n",
+ " -0.454 | \n",
"
\n",
" \n",
- " 2.199 | \n",
- " 0.809 | \n",
- " -0.588 | \n",
+ " 2.199 | \n",
+ " 0.809 | \n",
+ " -0.588 | \n",
"
\n",
" \n",
- " 2.356 | \n",
- " 0.707 | \n",
- " -0.707 | \n",
+ " 2.356 | \n",
+ " 0.707 | \n",
+ " -0.707 | \n",
"
\n",
" \n",
- " 2.513 | \n",
- " 0.588 | \n",
- " -0.809 | \n",
+ " 2.513 | \n",
+ " 0.588 | \n",
+ " -0.809 | \n",
"
\n",
" \n",
- " 2.670 | \n",
- " 0.454 | \n",
- " -0.891 | \n",
+ " 2.670 | \n",
+ " 0.454 | \n",
+ " -0.891 | \n",
"
\n",
" \n",
- " 2.827 | \n",
- " 0.309 | \n",
- " -0.951 | \n",
+ " 2.827 | \n",
+ " 0.309 | \n",
+ " -0.951 | \n",
"
\n",
" \n",
- " 2.985 | \n",
- " 0.156 | \n",
- " -0.988 | \n",
+ " 2.985 | \n",
+ " 0.156 | \n",
+ " -0.988 | \n",
"
\n",
" \n",
- " 3.142 | \n",
- " 0.000 | \n",
- " -1.000 | \n",
+ " 3.142 | \n",
+ " 0.000 | \n",
+ " -1.000 | \n",
"
\n",
" \n",
"
\n",
@@ -883,7 +883,7 @@
"\n"
],
"text/plain": [
- ""
+ ""
]
},
"execution_count": 5,
@@ -911,7 +911,7 @@
},
{
"cell_type": "markdown",
- "id": "02e02278",
+ "id": "77a8d563",
"metadata": {},
"source": [
"## Caption"
@@ -920,109 +920,109 @@
{
"cell_type": "code",
"execution_count": 6,
- "id": "fd6278dd",
+ "id": "c2973b66",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
- "\n",
+ "\n",
" A Pandas Styler object with background colors\n",
" \n",
" \n",
" | \n",
- " sin | \n",
- " cos | \n",
+ " sin | \n",
+ " cos | \n",
"
\n",
" \n",
" alpha | \n",
@@ -1032,109 +1032,109 @@
"
\n",
" \n",
" \n",
- " 0.000 | \n",
- " 0.000 | \n",
- " 1.000 | \n",
+ " 0.000 | \n",
+ " 0.000 | \n",
+ " 1.000 | \n",
"
\n",
" \n",
- " 0.157 | \n",
- " 0.156 | \n",
- " 0.988 | \n",
+ " 0.157 | \n",
+ " 0.156 | \n",
+ " 0.988 | \n",
"
\n",
" \n",
- " 0.314 | \n",
- " 0.309 | \n",
- " 0.951 | \n",
+ " 0.314 | \n",
+ " 0.309 | \n",
+ " 0.951 | \n",
"
\n",
" \n",
- " 0.471 | \n",
- " 0.454 | \n",
- " 0.891 | \n",
+ " 0.471 | \n",
+ " 0.454 | \n",
+ " 0.891 | \n",
"
\n",
" \n",
- " 0.628 | \n",
- " 0.588 | \n",
- " 0.809 | \n",
+ " 0.628 | \n",
+ " 0.588 | \n",
+ " 0.809 | \n",
"
\n",
" \n",
- " 0.785 | \n",
- " 0.707 | \n",
- " 0.707 | \n",
+ " 0.785 | \n",
+ " 0.707 | \n",
+ " 0.707 | \n",
"
\n",
" \n",
- " 0.942 | \n",
- " 0.809 | \n",
- " 0.588 | \n",
+ " 0.942 | \n",
+ " 0.809 | \n",
+ " 0.588 | \n",
"
\n",
" \n",
- " 1.100 | \n",
- " 0.891 | \n",
- " 0.454 | \n",
+ " 1.100 | \n",
+ " 0.891 | \n",
+ " 0.454 | \n",
"
\n",
" \n",
- " 1.257 | \n",
- " 0.951 | \n",
- " 0.309 | \n",
+ " 1.257 | \n",
+ " 0.951 | \n",
+ " 0.309 | \n",
"
\n",
" \n",
- " 1.414 | \n",
- " 0.988 | \n",
- " 0.156 | \n",
+ " 1.414 | \n",
+ " 0.988 | \n",
+ " 0.156 | \n",
"
\n",
" \n",
- " 1.571 | \n",
- " 1.000 | \n",
- " 0.000 | \n",
+ " 1.571 | \n",
+ " 1.000 | \n",
+ " 0.000 | \n",
"
\n",
" \n",
- " 1.728 | \n",
- " 0.988 | \n",
- " -0.156 | \n",
+ " 1.728 | \n",
+ " 0.988 | \n",
+ " -0.156 | \n",
"
\n",
" \n",
- " 1.885 | \n",
- " 0.951 | \n",
- " -0.309 | \n",
+ " 1.885 | \n",
+ " 0.951 | \n",
+ " -0.309 | \n",
"
\n",
" \n",
- " 2.042 | \n",
- " 0.891 | \n",
- " -0.454 | \n",
+ " 2.042 | \n",
+ " 0.891 | \n",
+ " -0.454 | \n",
"
\n",
" \n",
- " 2.199 | \n",
- " 0.809 | \n",
- " -0.588 | \n",
+ " 2.199 | \n",
+ " 0.809 | \n",
+ " -0.588 | \n",
"
\n",
" \n",
- " 2.356 | \n",
- " 0.707 | \n",
- " -0.707 | \n",
+ " 2.356 | \n",
+ " 0.707 | \n",
+ " -0.707 | \n",
"
\n",
" \n",
- " 2.513 | \n",
- " 0.588 | \n",
- " -0.809 | \n",
+ " 2.513 | \n",
+ " 0.588 | \n",
+ " -0.809 | \n",
"
\n",
" \n",
- " 2.670 | \n",
- " 0.454 | \n",
- " -0.891 | \n",
+ " 2.670 | \n",
+ " 0.454 | \n",
+ " -0.891 | \n",
"
\n",
" \n",
- " 2.827 | \n",
- " 0.309 | \n",
- " -0.951 | \n",
+ " 2.827 | \n",
+ " 0.309 | \n",
+ " -0.951 | \n",
"
\n",
" \n",
- " 2.985 | \n",
- " 0.156 | \n",
- " -0.988 | \n",
+ " 2.985 | \n",
+ " 0.156 | \n",
+ " -0.988 | \n",
"
\n",
" \n",
- " 3.142 | \n",
- " 0.000 | \n",
- " -1.000 | \n",
+ " 3.142 | \n",
+ " 0.000 | \n",
+ " -1.000 | \n",
"
\n",
" \n",
"
\n",
@@ -1142,7 +1142,7 @@
"\n"
],
"text/plain": [
- ""
+ ""
]
},
"execution_count": 6,
@@ -1172,7 +1172,7 @@
},
{
"cell_type": "markdown",
- "id": "609c25d7",
+ "id": "238b3547",
"metadata": {},
"source": [
"## Tooltips"
@@ -1181,18 +1181,18 @@
{
"cell_type": "code",
"execution_count": 7,
- "id": "a1a14baf",
+ "id": "054916c8",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
"\n",
- "\n",
+ "\n",
" With tooltips\n",
" \n",
" \n",
" | \n",
- " sin | \n",
- " cos | \n",
+ " sin | \n",
+ " cos | \n",
"
\n",
" \n",
" alpha | \n",
@@ -1553,109 +1553,109 @@
"
\n",
" \n",
" \n",
- " 0.000 | \n",
- " 0.000 | \n",
- " 1.000 | \n",
+ " 0.000 | \n",
+ " 0.000 | \n",
+ " 1.000 | \n",
"
\n",
" \n",
- " 0.157 | \n",
- " 0.156 | \n",
- " 0.988 | \n",
+ " 0.157 | \n",
+ " 0.156 | \n",
+ " 0.988 | \n",
"
\n",
" \n",
- " 0.314 | \n",
- " 0.309 | \n",
- " 0.951 | \n",
+ " 0.314 | \n",
+ " 0.309 | \n",
+ " 0.951 | \n",
"
\n",
" \n",
- " 0.471 | \n",
- " 0.454 | \n",
- " 0.891 | \n",
+ " 0.471 | \n",
+ " 0.454 | \n",
+ " 0.891 | \n",
"
\n",
" \n",
- " 0.628 | \n",
- " 0.588 | \n",
- " 0.809 | \n",
+ " 0.628 | \n",
+ " 0.588 | \n",
+ " 0.809 | \n",
"
\n",
" \n",
- " 0.785 | \n",
- " 0.707 | \n",
- " 0.707 | \n",
+ " 0.785 | \n",
+ " 0.707 | \n",
+ " 0.707 | \n",
"
\n",
" \n",
- " 0.942 | \n",
- " 0.809 | \n",
- " 0.588 | \n",
+ " 0.942 | \n",
+ " 0.809 | \n",
+ " 0.588 | \n",
"
\n",
" \n",
- " 1.100 | \n",
- " 0.891 | \n",
- " 0.454 | \n",
+ " 1.100 | \n",
+ " 0.891 | \n",
+ " 0.454 | \n",
"
\n",
" \n",
- " 1.257 | \n",
- " 0.951 | \n",
- " 0.309 | \n",
+ " 1.257 | \n",
+ " 0.951 | \n",
+ " 0.309 | \n",
"
\n",
" \n",
- " 1.414 | \n",
- " 0.988 | \n",
- " 0.156 | \n",
+ " 1.414 | \n",
+ " 0.988 | \n",
+ " 0.156 | \n",
"
\n",
" \n",
- " 1.571 | \n",
- " 1.000 | \n",
- " 0.000 | \n",
+ " 1.571 | \n",
+ " 1.000 | \n",
+ " 0.000 | \n",
"
\n",
" \n",
- " 1.728 | \n",
- " 0.988 | \n",
- " -0.156 | \n",
+ " 1.728 | \n",
+ " 0.988 | \n",
+ " -0.156 | \n",
"
\n",
" \n",
- " 1.885 | \n",
- " 0.951 | \n",
- " -0.309 | \n",
+ " 1.885 | \n",
+ " 0.951 | \n",
+ " -0.309 | \n",
"
\n",
" \n",
- " 2.042 | \n",
- " 0.891 | \n",
- " -0.454 | \n",
+ " 2.042 | \n",
+ " 0.891 | \n",
+ " -0.454 | \n",
"
\n",
" \n",
- " 2.199 | \n",
- " 0.809 | \n",
- " -0.588 | \n",
+ " 2.199 | \n",
+ " 0.809 | \n",
+ " -0.588 | \n",
"
\n",
" \n",
- " 2.356 | \n",
- " 0.707 | \n",
- " -0.707 | \n",
+ " 2.356 | \n",
+ " 0.707 | \n",
+ " -0.707 | \n",
"
\n",
" \n",
- " 2.513 | \n",
- " 0.588 | \n",
- " -0.809 | \n",
+ " 2.513 | \n",
+ " 0.588 | \n",
+ " -0.809 | \n",
"
\n",
" \n",
- " 2.670 | \n",
- " 0.454 | \n",
- " -0.891 | \n",
+ " 2.670 | \n",
+ " 0.454 | \n",
+ " -0.891 | \n",
"
\n",
" \n",
- " 2.827 | \n",
- " 0.309 | \n",
- " -0.951 | \n",
+ " 2.827 | \n",
+ " 0.309 | \n",
+ " -0.951 | \n",
"
\n",
" \n",
- " 2.985 | \n",
- " 0.156 | \n",
- " -0.988 | \n",
+ " 2.985 | \n",
+ " 0.156 | \n",
+ " -0.988 | \n",
"
\n",
" \n",
- " 3.142 | \n",
- " 0.000 | \n",
- " -1.000 | \n",
+ " 3.142 | \n",
+ " 0.000 | \n",
+ " -1.000 | \n",
"
\n",
" \n",
"
\n",
@@ -1663,7 +1663,7 @@
"\n"
],
"text/plain": [
- ""
+ ""
]
},
"execution_count": 7,
diff --git a/_sources/polars_dataframes.ipynb b/_sources/polars_dataframes.ipynb
index 56c452b..322390c 100644
--- a/_sources/polars_dataframes.ipynb
+++ b/_sources/polars_dataframes.ipynb
@@ -2,7 +2,7 @@
"cells": [
{
"cell_type": "markdown",
- "id": "5b3e8880",
+ "id": "5b10ab58",
"metadata": {},
"source": [
"# Polars dataframes\n",
@@ -14,7 +14,7 @@
{
"cell_type": "code",
"execution_count": 1,
- "id": "da83e8b6",
+ "id": "33e6b005",
"metadata": {},
"outputs": [
{
@@ -58,7 +58,7 @@
"text/html": [
"\n",
- "\n",
+ "
\n",
"
\n",
"\n"
],
"text/plain": [
@@ -179,7 +179,7 @@
},
{
"cell_type": "markdown",
- "id": "97e55e89",
+ "id": "a47c6e19",
"metadata": {},
"source": [
"## empty"
@@ -188,13 +188,13 @@
{
"cell_type": "code",
"execution_count": 2,
- "id": "13cf5b52",
+ "id": "b6f91bba",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
- "
\n",
+ "\n",
"\n",
" \n",
" | \n",
@@ -303,7 +303,7 @@
"\n"
],
"text/plain": [
@@ -215,7 +215,7 @@
},
{
"cell_type": "markdown",
- "id": "3212ff9f",
+ "id": "21932632",
"metadata": {},
"source": [
"After this, any Pandas or Polars DataFrame, or Series,\n",
@@ -226,13 +226,13 @@
{
"cell_type": "code",
"execution_count": 2,
- "id": "1b4765d1",
+ "id": "243b4cda",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
- "\n",
+ "\n",
"\n",
" \n",
" | \n",
@@ -354,7 +354,7 @@
"\n"
],
"text/plain": [
@@ -178,7 +178,7 @@
},
{
"cell_type": "markdown",
- "id": "b53ad2dd",
+ "id": "6c2f5214",
"metadata": {},
"source": [
"## empty"
@@ -187,13 +187,13 @@
{
"cell_type": "code",
"execution_count": 2,
- "id": "fd817d8a",
+ "id": "b7df2d09",
"metadata": {},
"outputs": [
{
"data": {
"text/html": [
- "\n",
+ "\n",
"\n",
" \n",
" | \n",
@@ -302,7 +302,7 @@
"\n"
],
"text/plain": [
@@ -178,7 +178,7 @@
{
"cell_type": "code",
"execution_count": 2,
- "id": "ff55b72e",
+ "id": "7334c279",
"metadata": {
"tags": [
"hide-input"
@@ -217,7 +217,7 @@
{
"cell_type": "code",
"execution_count": 3,
- "id": "91dd7a49",
+ "id": "7c40e7a3",
"metadata": {
"tags": [
"full-width"
@@ -227,7 +227,7 @@
{
"data": {
"text/html": [
- "\n",
+ "\n",
"\n",
" \n",
" | \n",
@@ -353,7 +353,7 @@
"
-
@@ -669,7 +669,7 @@
Caption
-
+
Countries from the World Bank Database
|
@@ -791,7 +791,7 @@ Caption