Spaces:
Sleeping
Sleeping
Commit
·
69f3f4d
1
Parent(s):
2dac5f6
Update app.py
Browse files
app.py
CHANGED
@@ -57,7 +57,6 @@ def google_address(address):
|
|
57 |
|
58 |
df['Square Footage']=df['Description'].str.extract(r"((\d+) Square Feet|(\d+) sq. ft.|(\d+) sqft|(\d+) Sq. Ft.|(\d+) sq|(\d+(?:,\d+)?) Sq\. Ft\.)")[0]
|
59 |
df['Square Footage']=df['Square Footage'].replace({',':''},regex=True).str.replace(r'\D', '')
|
60 |
-
df['Square Footage']=df['Description'].str.extract(r"(\d+) ")
|
61 |
df['Beds']=df['Description'].replace({'-':' ','total':''},regex=True).str.extract(r"(\d+) bed")
|
62 |
df['Baths']=df['Description'].replace({'-':' ','total':''},regex=True).str.extract(r"(\d+) bath")
|
63 |
df['Year Built']=df['Description'].str.extract(r"built in (\d{4})")
|
|
|
57 |
|
58 |
df['Square Footage']=df['Description'].str.extract(r"((\d+) Square Feet|(\d+) sq. ft.|(\d+) sqft|(\d+) Sq. Ft.|(\d+) sq|(\d+(?:,\d+)?) Sq\. Ft\.)")[0]
|
59 |
df['Square Footage']=df['Square Footage'].replace({',':''},regex=True).str.replace(r'\D', '')
|
|
|
60 |
df['Beds']=df['Description'].replace({'-':' ','total':''},regex=True).str.extract(r"(\d+) bed")
|
61 |
df['Baths']=df['Description'].replace({'-':' ','total':''},regex=True).str.extract(r"(\d+) bath")
|
62 |
df['Year Built']=df['Description'].str.extract(r"built in (\d{4})")
|