<jupyter_start><jupyter_text>Practice Level Analysis<jupyter_code>import matplotlib.pyplot as plt
supplier_transfers["requestingPracticeAsid"].value_counts().plot.hist(bins=500)
plt.gca().set_xlim([0,300])
    
supplier_transfers["Transfer Failed"].mean()

supplier_transfers["sendingPracticeAsid"].value_counts().plot.hist(bins=500)
plt.gca().set_xlim([0,300])
request_by_practice = supplier_transfers.groupby("requestingPracticeAsid").agg({"Transfer Failed":["count","mean"]})["Transfer Failed"]
request_by_practice.loc[request_by_practice["count"]>40, "mean"].plot.hist(bins=500)
plt.gca().set_xlim([0,0.2])

request_by_practice = supplier_transfers.groupby("sendingPracticeAsid").agg({"Transfer Failed":["count","mean"]})["Transfer Failed"]
request_by_practice.loc[request_by_practice["count"]>40, "mean"].plot.hist(bins=500)
plt.gca().set_xlim([0,0.2])<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.1826381059751973, 'fraction_numerical': 0.033821871476888386, 'mean_word_length': 13.095238095238095, 'pattern_counts': {'":': 2, '<': 5, '<?xml version=': 0, '>': 7, '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': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '383943', 'license': 'Apache-2.0', 'n_tokens_mistral': 365, 'n_tokens_neox': 319, 'n_words': 26, 'path': 'notebooks/11-Ad-hoc-transfer-breakdown.ipynb', 'repo_name': 'uk-gov-mirror/nhsconnect.prm-gp2gp-data-sandbox', 'size': '887'}