- redfin buildings support

This commit is contained in:
Zachary Hampton
2023-09-18 08:26:35 -07:00
parent ba9fe806a7
commit ba249ca20d
2 changed files with 34 additions and 3 deletions

View File

@@ -71,7 +71,7 @@ def process_result(result: Union[Building, Property]) -> pd.DataFrame:
address_data = prop_data["address"]
prop_data["site_name"] = prop_data["site_name"]
prop_data["listing_type"] = prop_data["listing_type"].value
prop_data["property_type"] = prop_data["property_type"].value.lower() if prop_data["property_type"] else None
prop_data["property_type"] = prop_data["property_type"].value.lower() if prop_data.get("property_type") else None
prop_data["address_one"] = address_data.address_one
prop_data["city"] = address_data.city
prop_data["state"] = address_data.state