<jupyter_start><jupyter_text><jupyter_code>import pandas as pd
pd.read_csv('./auto-mpg.csv', header=None)
df = pd.read_csv('./auto-mpg.csv', header=None)
df.info()
df.columns = ['mpg','cylinders','displacement','horsepower','weight',
              'acceleration','model year','origin','name']

df.describe(include='all')
df[['horsepower','name']].describe(include='all')
df['horsepower'].value_counts()
df['horsepower'].astype('float64')
df['horsepower'].unique()
df['horsepower'].replace(to_replace='?', value=None, inplace=False)
df_horsepower = df['horsepower'].replace(to_replace='?', value=None, inplace=False)
df_horsepower.unique()
type(df['horsepower'])
type(df_horsepower)
df_horsepower = df_horsepower.astype('float')
df_horsepower.mean()
df['horsepower'] = df_horsepower.fillna(104)
df.info()
df['name'].unique()
df.head()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.21089223638470453, 'fraction_numerical': 0.005793742757821553, 'mean_word_length': 9.409638554216867, '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': '471031', 'license': 'Apache-2.0', 'n_tokens_mistral': 331, 'n_tokens_neox': 305, 'n_words': 37, 'path': 'datapreprocess_replace.ipynb', 'repo_name': 'creamcheesesteak/test_visualization', 'size': '863'}