Skip to content

mosheka/python_hbase_lab

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

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

About

Open lab for python and hbase

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published