<jupyter_start><jupyter_text>SummaryReview some possibilities for rating teams based on heuristics like plus/minus differential.<jupyter_code>import os
import pandas as pd
data_dir = os.path.join(os.path.pardir, 'data')
league_id = 40264
plusminus = pd.read_csv(os.path.join(data_dir, 'plusminus_{}.csv'.format(league_id)))
plusminus.head()
winpct = plusminus['Wins'] / (plusminus['Wins'] + plusminus['Losses'])
plusminus = plusminus.assign(winpercent = winpct)
plusminus.sort_values('PlusMinus', ascending=False)
plusminus.sort_values(['divname', 'PlusMinus'], ascending=[True, False])<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.14123376623376624, 'fraction_numerical': 0.008116883116883116, 'mean_word_length': 8.793650793650794, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, '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': '290082', 'license': 'MIT', 'n_tokens_mistral': 218, 'n_tokens_neox': 206, 'n_words': 39, 'path': 'Insight Bayesian Workshop/Ratings - Heuristic.ipynb', 'repo_name': 'sbussmann/rate-teams', 'size': '616'}