help@rskworld.in +91 93305 39277
RSK World
  • Home
  • Development
    • Web Development
    • Mobile Apps
    • Software
    • Games
    • Project
  • Technologies
    • Data Science
    • AI Development
    • Cloud Development
    • Blockchain
    • Cyber Security
    • Dev Tools
    • Testing Tools
  • Blog
  • About
  • Contact

Theme Settings

Color Scheme
Display Options
Font Size
100%
Back to Project
RSK World
housing-prices
RSK World
housing-prices
Housing Price Prediction Dataset - Real Estate ML + Price Prediction AI + Housing Price Deep Learning
housing-prices
  • __pycache__
  • .gitignore714 B
  • ADVANCED_FEATURES.md5.2 KB
  • LICENSE.txt1.5 KB
  • PROJECT_STRUCTURE.txt4.3 KB
  • README.md5.1 KB
  • advanced_models.py10.3 KB
  • data_analysis.py3.3 KB
  • data_visualization.py5.3 KB
  • dataset_info.txt3.5 KB
  • feature_engineering.py9.5 KB
  • housing_price_prediction.ipynb9.4 KB
  • housing_prices.csv4.8 KB
  • housing_prices.json23.7 KB
  • hyperparameter_tuning.py9.9 KB
  • index.html11.2 KB
  • model_comparison.py8.1 KB
  • predict_price.py4.6 KB
  • requirements.txt620 B
  • test_project.py6.8 KB
  • validate_data.py2.7 KB
validate_data.py
validate_data.py
Raw Download
Find: Go to:
"""
Housing Price Prediction Dataset - Data Validation Script
RSK World - Free Programming Resources & Source Code
Website: https://rskworld.in
Contact: help@rskworld.in, support@rskworld.in
Phone: +91 93305 39277
Founder: Molla Samser
Designer & Tester: Rima Khatun
Created: 2026
"""

import pandas as pd
import json
import os

def validate_csv():
    """Validate CSV file"""
    print("Validating CSV file...")
    try:
        df = pd.read_csv('housing_prices.csv')
        print(f"[OK] CSV file loaded successfully")
        print(f"  - Shape: {df.shape}")
        print(f"  - Columns: {len(df.columns)}")
        print(f"  - Missing values: {df.isnull().sum().sum()}")
        print(f"  - Price range: ${df['price'].min():,.0f} - ${df['price'].max():,.0f}")
        return True
    except Exception as e:
        print(f"[ERROR] Error validating CSV: {e}")
        return False

def validate_json():
    """Validate JSON file"""
    print("\nValidating JSON file...")
    try:
        with open('housing_prices.json', 'r') as f:
            data = json.load(f)
        print(f"[OK] JSON file loaded successfully")
        print(f"  - Records: {len(data)}")
        print(f"  - First record keys: {list(data[0].keys())}")
        return True
    except Exception as e:
        print(f"[ERROR] Error validating JSON: {e}")
        return False

def check_required_files():
    """Check if all required files exist"""
    print("\nChecking required files...")
    required_files = [
        'housing_prices.csv',
        'housing_prices.json',
        'data_analysis.py',
        'data_visualization.py',
        'housing_price_prediction.ipynb',
        'advanced_models.py',
        'feature_engineering.py',
        'hyperparameter_tuning.py',
        'model_comparison.py',
        'predict_price.py',
        'README.md',
        'requirements.txt',
        'index.html'
    ]
    
    all_exist = True
    for file in required_files:
        if os.path.exists(file):
            print(f"[OK] {file}")
        else:
            print(f"[MISSING] {file}")
            all_exist = False
    
    return all_exist

def main():
    print("="*60)
    print("Housing Price Prediction Dataset - Validation")
    print("RSK World - Free Programming Resources & Source Code")
    print("="*60)
    
    csv_ok = validate_csv()
    json_ok = validate_json()
    files_ok = check_required_files()
    
    print("\n" + "="*60)
    if csv_ok and json_ok and files_ok:
        print("[SUCCESS] All validations passed!")
        print("Dataset is ready to use.")
    else:
        print("[FAILED] Some validations failed. Please check the errors above.")
    print("="*60)

if __name__ == "__main__":
    main()

95 lines•2.7 KB
python

About RSK World

Founded by Molla Samser, with Designer & Tester Rima Khatun, RSK World is your one-stop destination for free programming resources, source code, and development tools.

Founder: Molla Samser
Designer & Tester: Rima Khatun

Development

  • Game Development
  • Web Development
  • Mobile Development
  • AI Development
  • Development Tools

Legal

  • Terms & Conditions
  • Privacy Policy
  • Disclaimer

Contact Info

Nutanhat, Mongolkote
Purba Burdwan, West Bengal
India, 713147

+91 93305 39277

hello@rskworld.in
support@rskworld.in

© 2026 RSK World. All rights reserved.

Content used for educational purposes only. View Disclaimer