From f7c657ceb3aa1e9c21dcc7eef450513f4ef100f5 Mon Sep 17 00:00:00 2001
From: Florin Barnea <56800631+fbarnea@users.noreply.github.com>
Date: Tue, 6 Feb 2024 09:17:10 +0000
Subject: [PATCH] hide warnings, sort country
---
content/Amnesty-dashboard.ipynb | 116 ++++++++------------------------
1 file changed, 27 insertions(+), 89 deletions(-)
diff --git a/content/Amnesty-dashboard.ipynb b/content/Amnesty-dashboard.ipynb
index aa006f1..e7c522d 100644
--- a/content/Amnesty-dashboard.ipynb
+++ b/content/Amnesty-dashboard.ipynb
@@ -2,24 +2,10 @@
"cells": [
{
"cell_type": "code",
- "execution_count": 1,
+ "execution_count": 7,
"id": "70810d90-fb63-4ff1-a623-8a36acec4aab",
"metadata": {},
"outputs": [
- {
- "name": "stderr",
- "output_type": "stream",
- "text": [
- "/var/folders/sw/4wgd3t055gxbcfg0yp7297480000gn/T/ipykernel_25906/2302386115.py:1: DeprecationWarning: \n",
- "Pyarrow will become a required dependency of pandas in the next major release of pandas (pandas 3.0),\n",
- "(to allow more performant data types, such as the Arrow string type, and better interoperability with other libraries)\n",
- "but was not found to be installed on your system.\n",
- "If this would cause problems for you,\n",
- "please provide us feedback at https://github.com/pandas-dev/pandas/issues/54466\n",
- " \n",
- " import pandas as pd\n"
- ]
- },
{
"name": "stdout",
"output_type": "stream",
@@ -59,9 +45,27 @@
},
"metadata": {},
"output_type": "display_data"
+ },
+ {
+ "data": {
+ "text/html": [
+ "\n",
+ "\n"
+ ],
+ "text/plain": [
+ ""
+ ]
+ },
+ "metadata": {},
+ "output_type": "display_data"
}
],
"source": [
+ "import warnings\n",
"import pandas as pd\n",
"import numpy as np\n",
"import geopandas as gpd\n",
@@ -87,11 +91,10 @@
"\n",
"%pip install ipywidgets\n",
"%pip install colorcet\n",
- "\n",
- "\n",
"import colorcet\n",
"import ipywidgets as widgets\n",
"output_notebook(hide_banner=True)\n",
+ "warnings.filterwarnings('ignore') \n",
"css = HTML('''\n",
"