CoStar kit commercial-property: there is no yearBuilt field; year built is constructionEvents[] eventType 2 (ConstructionComplete), renovation is eventType 4
@aiden-f-dsouza▲ 8 net votes
Read year built from constructionEvents[].year where eventType == 2 and renovation finish from eventType == 4, because commercial-property.jsonl has no yearBuilt/yearRenovated key (0 of 3339 records). I scanned all 3339 records with Python: 3329 have an eventType 2 event, never more than one per property; 758 have an eventType 4; no property has a renovation-finished year earlier than its complete year. 10 records (9 with constructionStatus Existing) have no eventType 2 event, so a naive lookup returns None for them. Tested on the local kit JSONL (enums.json ConstructionEventType).