def process_df(df): df = date_clean(df) df = create_fraud_col(df) df = extract_info(df) df = currency_and_duration(df) df = text_work(df) df = extract_email_domain(df) df = get_delivery_dummies(df) df = clean_venue_state(df) df = make_country_dummies(df) return df
def process_point(df): df = date_clean(df) df = extract_info(df) df = currency_and_duration(df, point_predict=True) df = get_num_caps(df) df = extract_email_domain(df, point_predict=True) df = get_delivery_dummies_point(df) df = clean_venue_state(df, point_predict=True) df = make_country_dummies_point(df) # Creates a boolean columns whether there is a previous payout or not as well as dropping the previous_payouts column df = previous_payout(df) return df