import pandas as pd


def prep_data():
    url = "https://archive.ics.uci.edu/ml/machine-learning-databases/00262/turkiye-student-evaluation_generic.csv"

    dta = pd.read_csv(url,
                      index_col=False,
                      sep=',',
                      skipinitialspace=True)

    dta = dta.drop(columns=['class', 'nb.repeat'])

    dta.instr = dta.instr.replace({1: 0,
                                   2: 0,
                                   3: 1})

    # dta.to_pickle("dta.pkl")

    return dta
