<jupyter_start><jupyter_text>Displaying member similarity> GUI to explore most similar members<jupyter_code>%load_ext autoreload
%autoreload 2<jupyter_output><empty_output><jupyter_text>Setup<jupyter_code>import pandas as pd
from bundestag.gui import MdBGUI, PartyGUI
df = pd.read_parquet('../bundestag.de_votes.parquet')<jupyter_output><empty_output><jupyter_text>Politician (MdB) GUI<jupyter_code>%%time
mdb = MdBGUI(df)
mdb.render()<jupyter_output><empty_output><jupyter_text>Party GUI<jupyter_code>%%time
party = PartyGUI(df)
party.render()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.11846689895470383, 'fraction_numerical': 0.0017421602787456446, 'mean_word_length': 12.372093023255815, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 18, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '4', 'dir': 'jupyter-structured-clean-dedup', 'id': '354097', 'license': 'Apache-2.0', 'n_tokens_mistral': 235, 'n_tokens_neox': 223, 'n_words': 31, 'path': 'nbs/02_gui.ipynb', 'repo_name': 'eschmidt42/bundestag', 'size': '574'}