Skip to content

Latest commit

 

History

History
14 lines (9 loc) · 722 Bytes

README.md

File metadata and controls

14 lines (9 loc) · 722 Bytes

Python_HBase_Lab

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

  1. Create connection to HBase
  2. Create a new table that could store: user id, action date, game type, result (amount of win/loss)
  3. Insert random values for 1000 users and for each 100 games w/ reasults between -10 and 10
  4. Find the users that in their last 10 games lost 70% of their games