Open lab for Python and HBase using HappyBase
Your target is to create a users actions log table that could be used to detect users that had significant number of loses in their last games (lets say, 70% loses in last 10 games).
Implementation should be done using https://github.com/wbolster/happybase
Use for the following as a guidence: https://github.com/wbolster/happybase/blob/master/doc/user.rst
- Create connection to HBase
- Create a new table that could store: user id, action date, game type, result (amount of win/loss)
- Insert random values for 1000 users and for each 100 games w/ reasults between -10 and 10
- Find the users that in their last 10 games lost 70% of their games