sule1992 / Moloco

Files for Moloco test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Moloco

Files for Moloco test

PART 1 question 1 - simple filter and data aggregation using groupby+nunique pandas fnctions question 2 - simple filter and data aggregation using groupby+nunique pandas fnctions question 3 - first find the last site visited for each user. Then simply count unique users per site using the above question 3 - find first visited site using .head function, and last site visited using tail function - for each user. Join these two so we can view last visited and first visited for each users. Then simply filter for where last site == first site and count the length of the dataframe

PART 2 regression

Can not use sk.learn so implemented a regression using the statsmodels library. Ran a linear regression using ordinary least squares as the optimisation function. Results are not very good.

About

Files for Moloco test


Languages

Language:Python 100.0%