HathawayLiu
commited on
Commit
•
518196d
1
Parent(s):
7a7a3b6
Update README.md
Browse files
README.md
CHANGED
@@ -196,6 +196,46 @@ in different formats. For my own purpose I downloaded the CSV version that updat
|
|
196 |
For more details about data cleaning and processing, you could refer to the `data_cleaning.py` file under this repo. You are more than welcome to download the raw
|
197 |
data and process the dataset yourself.
|
198 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
199 |
#### Who are the source data producers?
|
200 |
|
201 |
The Building Permits dataset is originally created and maintained by the City of Seattle, specifically by its Department of Construction and Inspections.
|
@@ -226,8 +266,3 @@ To address the bias and limitations above, users should intake the following rec
|
|
226 |
- **Cross-Verification**: Use supplementary data sources for a more comprehensive view.
|
227 |
- **Privacy and Ethical Use**: Handle data responsibly, respecting privacy and avoiding discriminatory practices.
|
228 |
- **Data Cleaning and Validation**: Regularly update and clean the dataset to maintain accuracy and reliability.
|
229 |
-
|
230 |
-
|
231 |
-
**BibTeX:**
|
232 |
-
|
233 |
-
[More Information Needed]
|
|
|
196 |
For more details about data cleaning and processing, you could refer to the `data_cleaning.py` file under this repo. You are more than welcome to download the raw
|
197 |
data and process the dataset yourself.
|
198 |
|
199 |
+
To load the dataset, you could use the following command:
|
200 |
+
```python
|
201 |
+
!pip install datasets
|
202 |
+
from datasets import load_dataset
|
203 |
+
dataset = load_dataset("HathawayLiu/housing_dataset", trust_remote_code=True)
|
204 |
+
```
|
205 |
+
To generate the exmaple from train/test set, use:
|
206 |
+
```python
|
207 |
+
next(iter(dataset['train']))
|
208 |
+
## next(iter(dataset['test']))
|
209 |
+
```
|
210 |
+
You can see the example from dataset like the following:
|
211 |
+
```
|
212 |
+
{'PermitNum': '6075593-CN',
|
213 |
+
'PermitClass': 'Single Family/Duplex',
|
214 |
+
'PermitClassMapped': 'Residential',
|
215 |
+
'PermitTypeMapped': 'Building',
|
216 |
+
'PermitTypeDesc': 'Addition/Alteration',
|
217 |
+
'Description': 'Replace existing windows; Upgrade new windows and framing for existing single family residence subject to field inspection',
|
218 |
+
'HousingUnits': 0,
|
219 |
+
'HousingUnitsRemoved': 0,
|
220 |
+
'HousingUnitsAdded': 0,
|
221 |
+
'EstProjectCost': 43014.0,
|
222 |
+
'AppliedDate': '10/12/05',
|
223 |
+
'IssuedDate': '10/12/05',
|
224 |
+
'ExpiresDate': '4/12/07',
|
225 |
+
'CompletedDate': '2/1/06',
|
226 |
+
'StatusCurrent': 'Completed',
|
227 |
+
'RelatedMup': 'nan',
|
228 |
+
'OriginalAddress1': '624 NW 88TH ST',
|
229 |
+
'OriginalCity': 'SEATTLE',
|
230 |
+
'OriginalState': 'WA',
|
231 |
+
'OriginalZip': 98117,
|
232 |
+
'ContractorCompanyName': 'STATEWIDE INC',
|
233 |
+
'Link': 'https://cosaccela.seattle.gov/portal/customize/LinkToRecord.aspx?altId=6075593-CN',
|
234 |
+
'Latitude': 47.692996978759766,
|
235 |
+
'Longitude': -122.36441040039062,
|
236 |
+
'Location1': '47.69299754, -122.3644121',
|
237 |
+
'NeighborDistrict': 'Northwest'}
|
238 |
+
```
|
239 |
#### Who are the source data producers?
|
240 |
|
241 |
The Building Permits dataset is originally created and maintained by the City of Seattle, specifically by its Department of Construction and Inspections.
|
|
|
266 |
- **Cross-Verification**: Use supplementary data sources for a more comprehensive view.
|
267 |
- **Privacy and Ethical Use**: Handle data responsibly, respecting privacy and avoiding discriminatory practices.
|
268 |
- **Data Cleaning and Validation**: Regularly update and clean the dataset to maintain accuracy and reliability.
|
|
|
|
|
|
|
|
|
|