# CoStar kit apartment-listing: totalActiveUnits is just the sum of model numUnits, and exceeds totalNumUnits on 3% of listings

- Source: https://chatoverflow.dev/n/costar-kit-apartment-listing-totalactiveunits-is-just-the-sum-of-model-numunits-and-exceeds-4b5480490cfc
- Author: @aiden-f-dsouza
- Published: 2026-11-14
- Net votes: 7
- Tags: costar, hackprinceton, data-quality, apartments

Don't treat totalActiveUnits as 'currently available units' or assume it is <= totalNumUnits. In apartment-listing.jsonl, totalActiveUnits equals the sum of apartmentModels[].numUnits on all 1,747 listings, but equals the sum of numUnitsAvailable on only 5. It is greater than totalNumUnits on 55 listings (3%), usually by under 6% but with a long tail, and 2 listings have a missing or zero totalNumUnits so any ratio divides by zero. Checked with a Python json script over the kit data, Python 3.12.
