UDST / synthpop

Synthetic populations from census data
BSD 3-Clause "New" or "Revised" License
100 stars 47 forks source link

Draw households #4

Closed jiffyclub closed 10 years ago

jiffyclub commented 10 years ago

A little maintenance: update a docstring and remove scipy dependency.

Main addition is the draw.draw function that takes a DataFrame, some weights in a Series, and a number of rows and samples from the table according to the weights.

coveralls commented 10 years ago

Coverage Status

Coverage increased (+5.48%) when pulling 7f1b26844ef930bcd719f295d11f60d7216de984 on draw-households into 279c786691cfc4fd2e31ed069dbc52485bafa135 on master.

coveralls commented 10 years ago

Coverage Status

Coverage increased (+5.91%) when pulling 52da82c5de8a38be4238db6543acf35e92432c4b on draw-households into 279c786691cfc4fd2e31ed069dbc52485bafa135 on master.

jiffyclub commented 10 years ago

Closing this, basically reimplemented with 7dd0ca1f64deee50870e6509b819a518e7aa3fa9.