logistic_regression Python Code
Python
#Load library and data
import pandas as pd
from ChannelAttributionPro import *
Data = pd.read_csv("https://channelattribution.net/csv/Data.csv",sep=";")
password="yourpassword"
# Perform transaction level attribution
res=logistic_regression(Data=Data, var_path="path", var_conv="total_conversions",
var_null="total_null", var_value=None, row_sep=",",cha_sep=">",flg_write_nulls=False,
flg_write_paths=False, file_output=None, verbose=True,
server="app.channelattribution.io",password=password)
path_attribution=res["attribution"]
print(path_attribution)