# ---
# jupyter:
#   jupytext:
#     text_representation:
#       extension: .py
#       format_name: light
#       format_version: '1.5'
#       jupytext_version: 1.14.4
#   kernelspec:
#     display_name: Python 3
#     language: python
#     name: python3
# ---

import os
import pandas as pd
VOTING_PATH = os.path.join("../datasets", "iris")


# + pycharm={"name": "#%%\n"}
def load_voting_data(voting_path=VOTING_PATH):
    csv_path=os.path.join(voting_path, 'house-votes-84.csv')
    return pd.read_csv(csv_path, header=None)

df=load_voting_data()

# + pycharm={"name": "#%%\n"}
new_names=dict(zip(df.columns, ['party', 'infants', 'water', 'budget', 'physician', 'salvador', 'religious',
                                'satellite', 'aid', 'missile', 'immigration', 'synfuels', 'education',
                                'superfund', 'crime', 'duty_free_exports', 'eaa_rsa']))
df.rename(columns=new_names, inplace=True)
df.head()

# + pycharm={"name": "#%%\n"}


StarcoderdataJupyterScriptsDedupFiltered