<jupyter_start><jupyter_text>Data hitters-clean<jupyter_code>import pandas as pd

df = pd.read_csv("https://raw.githubusercontent.com/kirenz/datasets/master/Hitters.csv").dropna()

dummies = pd.get_dummies(df[['League', 'Division','NewLeague']])

df_ = df.drop(['League', 'Division', 'NewLeague'], axis=1).astype('float')
df_new = pd.concat([df_, dummies[['League_N', 'Division_W', 'NewLeague_N']]], axis=1)

df_new.to_csv("~/downloads/hitters-clean.csv", index=False)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.20080321285140562, 'fraction_numerical': 0.004016064257028112, 'mean_word_length': 8.596153846153847, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 1, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '375225', 'license': 'MIT', 'n_tokens_mistral': 208, 'n_tokens_neox': 197, 'n_words': 23, 'path': 'hitters-clean.ipynb', 'repo_name': 'kirenz/datasets', 'size': '498'}