UDST / spandex

Spatial Analysis and Data Extraction
http://nbviewer.ipython.org/github/synthicity/user_meeting_2014/blob/gh-pages/spandex/spandex_demo.ipynb
BSD 3-Clause "New" or "Revised" License
22 stars 7 forks source link

Scale to match function #26

Closed janowicz closed 10 years ago

janowicz commented 10 years ago

Pandas-based function to scale values in the disaggregate data to match an aggregate target value.

Examples:


scale_to_match(buildings, 'unit_price', 'tract_id', median_home_values)
scale_to_match(buildings, 'year_built', 'bg_id', acs_mean_year_built)
scale_to_match(buildings, 'non_residential_sqft','zone_id', sqft_implied_from_employment, type='sum')
janowicz commented 10 years ago

Closing. See issue #45: Scale/synthesize to match aggregate totals.