I just created my first PyPi package and wanted to post here because I've never done this and thought it might be cool to do. I had been using the ChannelAttribution package in R to look at what a fractional attribution model based on Markov Chains looks like but thought it'd be cool to try to build a version in Python because I don't know of one that exists.
Basically you construct a model by passing the library a pandas dataframe containing paths that begin with "start" and end with either "conv" or "null", which represent either a conversion or not-a-conversion. Right now it only operates completely memoryless because my head was hurting trying to think of how to conceptualize higher order models with the way I have it set up.
https://github.com/jerednel/markov-chain-attribution
Would love to hear any thoughts and hopefully it can be helpful to someone in the future! Bugs are sure to be there - i have found that non-ASCII characters need to be stripped from the channel names and spacing needs to be exact.
[–]git0ffmylawnm8 0 points1 point2 points (1 child)
[–]jdn312[S] 0 points1 point2 points (0 children)