From 52b7e0e01e8fff0aadd3312e244a149830ac1879 Mon Sep 17 00:00:00 2001 From: Sahib Bhai Date: Mon, 18 Nov 2024 21:50:17 -0800 Subject: [PATCH] Add more column name permutations --- lease_dataframe.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lease_dataframe.py b/lease_dataframe.py index 44489ae1..97a91c64 100644 --- a/lease_dataframe.py +++ b/lease_dataframe.py @@ -52,19 +52,23 @@ # https://stackoverflow.com/a/65332240 # Define a renaming dictionary based on patterns rename_dict = { + 'address': 'street_name', 'agent': 'phone_number', 'allowed': 'pet_policy', 'baths': 'bathrooms', 'bedrooms': 'bedrooms', + 'br': 'bedrooms', 'city': 'city', 'furnished': 'furnished', 'key': 'key_deposit', 'laundry': 'laundry', 'list': 'list_price', 'lot': 'lot_size', + 'lp': 'list_price', 'mls': 'mls_number', 'other': 'other_deposit', 'pet deposit': 'pet_deposit', + 'pets': 'pet_policy', 'prking': 'parking_spaces', 'security': 'security_deposit', 'sqft': 'sqft', @@ -73,6 +77,7 @@ 'st name': 'street_name', 'sub': 'subtype', 'terms': 'terms', + 'yb': 'year_built', 'yr': 'year_built', 'zip': 'zip_code', }