File size: 6,211 Bytes
030e4fc |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 |
---
license: odbl
---
# π Divar Real Estate Ads Dataset
[](https://huggingface.co/datasets/divar/real-estate-ads)
[](https://huggingface.co/datasets/divar/real-estate-ads)
## π Overview
The `real_estate_ads` dataset contains one million anonymized real estate advertisements collected from the [Divar](https://divar.ir) platform, one of the largest classified ads platforms in the Middle East. This comprehensive dataset provides researchers, data scientists, and entrepreneurs with authentic real estate market data to build innovative solutions such as price evaluation models, market analysis tools, and forecasting systems.
## π Dataset Details
| Property | Value |
| --------------- | ------------------------------------------ |
| **Size** | 1,000,000 rows, approximately 750 MB |
| **Time Period** | Six-month period (2024) |
| **Source** | Anonymized real estate listings from Divar |
| **Format** | Tabular data (CSV/Parquet) with 57 columns |
| **Languages** | Mixed (primarily Persian) |
| **Domains** | Real Estate, Property Market |
## π Quick Start
```python
# Load the dataset using the Hugging Face datasets library
from datasets import load_dataset
# Load the full dataset
dataset = load_dataset("divar/real-estate-ads")
# Print the first few examples
print(dataset['train'][:5])
# Get dataset statistics
print(f"Dataset size: {len(dataset['train'])} rows")
print(f"Features: {dataset['train'].features}")
```
## π Schema
The dataset includes comprehensive property information organized in the following categories:
### π·οΈ Categorization
- `cat2_slug`, `cat3_slug`: Property categorization slugs
- `property_type`: Type of property (apartment, villa, land, etc.)
### π Location
- `city_slug`, `neighborhood_slug`: Location identifiers
- `location_latitude`, `location_longitude`: Geographic coordinates
- `location_radius`: Location accuracy radius
### π Listing Details
- `created_at_month`: Timestamp of when the ad was created
- `user_type`: Type of user who posted the listing (individual, agency, etc.)
- `description`, `title`: Textual information about the property
### π° Financial Information
- **Rent-related**: `rent_mode`, `rent_value`, `rent_to_single`, `rent_type`
- **Price-related**: `price_mode`, `price_value`
- **Credit-related**: `credit_mode`, `credit_value`
- **Transformed values**: Various transformed financial metrics for analysis
### π’ Property Specifications
- `land_size`, `building_size`: Property dimensions (in square meters)
- `deed_type`, `has_business_deed`: Legal property information
- `floor`, `rooms_count`, `total_floors_count`, `unit_per_floor`: Building structure details
- `construction_year`, `is_rebuilt`: Age and renovation status
### ποΈ Amenities and Features
- **Utilities**: `has_water`, `has_electricity`, `has_gas`
- **Climate control**: `has_heating_system`, `has_cooling_system`
- **Facilities**: `has_balcony`, `has_elevator`, `has_warehouse`, `has_parking`
- **Luxury features**: `has_pool`, `has_jacuzzi`, `has_sauna`
- **Other features**: `has_security_guard`, `has_barbecue`, `building_direction`, `floor_material`
### π¨ Short-term Rental Information
- `regular_person_capacity`, `extra_person_capacity`
- `cost_per_extra_person`
- **Pricing variations**: `rent_price_on_regular_days`, `rent_price_on_special_days`, `rent_price_at_weekends`
## π Example Analysis
```python
import pandas as pd
import matplotlib.pyplot as plt
import seaborn as sns
# Convert to pandas DataFrame for analysis
df = dataset['train'].to_pandas()
# Price distribution by property type
plt.figure(figsize=(12, 6))
sns.boxplot(x='property_type', y='price_value', data=df)
plt.title('Price Distribution by Property Type')
plt.xticks(rotation=45)
plt.tight_layout()
plt.show()
# Correlation between building size and price
plt.figure(figsize=(10, 6))
sns.scatterplot(x='building_size', y='price_value', data=df)
plt.title('Correlation between Building Size and Price')
plt.xlabel('Building Size (sq.m)')
plt.ylabel('Price')
plt.tight_layout()
plt.show()
```
## π‘ Use Cases
This dataset is particularly valuable for:
1. **Price Prediction Models**: Train algorithms to estimate property values based on features
```python
# Example: Simple price prediction model
from sklearn.ensemble import RandomForestRegressor
from sklearn.model_selection import train_test_split
features = ['building_size', 'rooms_count', 'construction_year', 'has_parking']
X = df[features].fillna(0)
y = df['price_value'].fillna(0)
X_train, X_test, y_train, y_test = train_test_split(X, y, test_size=0.2)
model = RandomForestRegressor(n_estimators=100)
model.fit(X_train, y_train)
```
2. **Market Analysis**: Understand trends and patterns in the real estate market
3. **Recommendation Systems**: Build tools to suggest properties based on user preferences
4. **Natural Language Processing**: Analyze property descriptions and titles
5. **Geospatial Analysis**: Study location-based pricing and property distribution
## π§ Data Processing Information
The data has been:
- Anonymized to protect privacy
- Randomly sampled from the complete Divar platform dataset
- Cleaned with select columns removed to ensure privacy and usability
- Standardized to ensure consistency across entries
## π Citation and Usage
When using this dataset in your research or applications, please consider acknowledging the source:
```bibtex
@dataset{divar2025realestate,
author = {Divar Corporation},
title = {Real Estate Ads Dataset from Divar Platform},
year = {2025},
publisher = {Hugging Face},
url = {https://huggingface.co/datasets/divar/real-estate-ads}
}
```
## π€ Contributing
We welcome contributions to improve this dataset! If you find issues or have suggestions, please open an issue on the [GitHub repository](https://github.com/divar-ir/kenar-docs) or contact us at [[email protected]](mailto:[email protected]). |