From da0b6f8831298cf5c25fb510e926e7edced2b79c Mon Sep 17 00:00:00 2001 From: Filomena Date: Wed, 20 Mar 2024 09:55:55 +0000 Subject: [PATCH] docs --- docs/labs/w08_dashboards.html | 2 +- index.tex | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/docs/labs/w08_dashboards.html b/docs/labs/w08_dashboards.html index a126f56..63a5a32 100644 --- a/docs/labs/w08_dashboards.html +++ b/docs/labs/w08_dashboards.html @@ -2040,7 +2040,7 @@

df = df.dropna(subset=['latitude', 'longitude']) # Widget to select a country countries = sorted(df['country_txt'].unique().tolist()) -country_selector = pn.widgets.Select(name='Country', options=csountries) +country_selector = pn.widgets.Select(name='Country', options=countries) diff --git a/index.tex b/index.tex index a58846e..fe06681 100644 --- a/index.tex +++ b/index.tex @@ -196,7 +196,7 @@ \begin{document} \maketitle -\ifdefined\Shaded\renewenvironment{Shaded}{\begin{tcolorbox}[breakable, enhanced, interior hidden, borderline west={3pt}{0pt}{shadecolor}, boxrule=0pt, sharp corners, frame hidden]}{\end{tcolorbox}}\fi +\ifdefined\Shaded\renewenvironment{Shaded}{\begin{tcolorbox}[frame hidden, enhanced, breakable, sharp corners, boxrule=0pt, interior hidden, borderline west={3pt}{0pt}{shadecolor}]}{\end{tcolorbox}}\fi \renewcommand*\contentsname{Table of contents} { @@ -13466,7 +13466,7 @@ \subsection{Subsetting the Dataframe on the basis of categorical \NormalTok{df }\OperatorTok{=}\NormalTok{ df.dropna(subset}\OperatorTok{=}\NormalTok{[}\StringTok{\textquotesingle{}latitude\textquotesingle{}}\NormalTok{, }\StringTok{\textquotesingle{}longitude\textquotesingle{}}\NormalTok{])} \CommentTok{\# Widget to select a country} \NormalTok{countries }\OperatorTok{=} \BuiltInTok{sorted}\NormalTok{(df[}\StringTok{\textquotesingle{}country\_txt\textquotesingle{}}\NormalTok{].unique().tolist())} -\NormalTok{country\_selector }\OperatorTok{=}\NormalTok{ pn.widgets.Select(name}\OperatorTok{=}\StringTok{\textquotesingle{}Country\textquotesingle{}}\NormalTok{, options}\OperatorTok{=}\NormalTok{csountries)} +\NormalTok{country\_selector }\OperatorTok{=}\NormalTok{ pn.widgets.Select(name}\OperatorTok{=}\StringTok{\textquotesingle{}Country\textquotesingle{}}\NormalTok{, options}\OperatorTok{=}\NormalTok{countries)} \end{Highlighting} \end{Shaded}