From 8b4644fa180ae1c0be8f0669be7d6569c27f7916 Mon Sep 17 00:00:00 2001 From: Sergio Recio Date: Thu, 9 Nov 2023 08:55:01 +0000 Subject: [PATCH] chore: added histograms to notebooks --- notebooks/e2e/e2e_leeds.py | 9 +++++++++ notebooks/e2e/e2e_marseille.py | 9 +++++++++ notebooks/e2e/e2e_newport.py | 10 ++++++++++ 3 files changed, 28 insertions(+) diff --git a/notebooks/e2e/e2e_leeds.py b/notebooks/e2e/e2e_leeds.py index 2538e97f..f77ab464 100644 --- a/notebooks/e2e/e2e_leeds.py +++ b/notebooks/e2e/e2e_leeds.py @@ -18,6 +18,7 @@ import pandas as pd import gtfs_kit as gk import folium +import seaborn as sns from pyprojroot import here from shapely.geometry import box @@ -919,3 +920,11 @@ def plot( tp_results # %% +sns.histplot( + perf_gdf, + x="transport_performance", + stat="density", + bins=50, + binrange=[0, 100], +) +# %% diff --git a/notebooks/e2e/e2e_marseille.py b/notebooks/e2e/e2e_marseille.py index ed131091..322e18a9 100644 --- a/notebooks/e2e/e2e_marseille.py +++ b/notebooks/e2e/e2e_marseille.py @@ -19,6 +19,7 @@ import pandas as pd import gtfs_kit as gk import folium +import seaborn as sns from pyprojroot import here from shapely.geometry import box @@ -943,3 +944,11 @@ def plot( tp_results # %% +sns.histplot( + perf_gdf, + x="transport_performance", + stat="density", + bins=50, + binrange=[0, 100], +) +# %% diff --git a/notebooks/e2e/e2e_newport.py b/notebooks/e2e/e2e_newport.py index aa78ff0c..a9a92cd4 100644 --- a/notebooks/e2e/e2e_newport.py +++ b/notebooks/e2e/e2e_newport.py @@ -18,6 +18,7 @@ import pandas as pd import gtfs_kit as gk import folium +import seaborn as sns from pyprojroot import here from shapely.geometry import box @@ -921,3 +922,12 @@ def plot( tp_results # %% +sns.histplot( + perf_gdf, + x="transport_performance", + stat="density", + bins=50, + binrange=[0, 100], +) + +# %%