Dataset Viewer
Auto-converted to Parquet Duplicate
GEOID
string
month
int64
sr311_total
int64
Blocked Driveway
float64
HEAT/HOT WATER
float64
Illegal Parking
float64
Noise - Residential
float64
Noise - Street/Sidewalk
float64
Noise - Vehicle
float64
Request Large Bulky Item Collection
float64
Street Condition
float64
UNSANITARY CONDITION
float64
Water System
float64
36005000100
576
4
0
1
0
0
0
0
0
0
0
0
36005000100
577
19
0
0
2
0
0
0
0
1
0
0
36005000100
578
1
0
0
0
0
0
0
0
0
0
0
36005000100
579
4
0
1
1
0
0
0
0
1
0
0
36005000100
580
4
0
0
4
0
0
0
0
0
0
0
36005000100
581
8
0
0
5
0
0
0
0
0
0
0
36005000100
582
3
0
0
1
0
0
0
0
0
0
0
36005000100
583
3
0
0
0
0
0
0
0
0
0
0
36005000100
584
2
0
0
1
0
0
0
0
0
0
0
36005000100
585
3
0
0
0
0
0
0
0
1
0
0
36005000100
586
1
0
0
0
0
0
0
0
0
0
0
36005000100
587
2
0
0
0
0
0
0
0
0
0
0
36005000100
588
3
0
0
0
0
0
0
0
0
0
0
36005000100
589
6
0
0
0
0
0
0
0
0
0
0
36005000100
590
3
0
0
0
0
0
0
0
0
0
0
36005000100
591
2
0
0
0
0
0
0
0
1
0
0
36005000100
592
1
0
0
0
0
0
0
0
0
0
0
36005000100
595
9
1
0
0
0
0
0
0
0
0
0
36005000100
596
2
0
0
0
0
0
0
0
0
0
0
36005000100
597
19
0
0
0
1
0
0
0
1
0
0
36005000100
598
1
0
0
0
0
0
0
0
0
0
0
36005000100
599
1
0
0
0
0
0
0
0
0
0
0
36005000100
600
4
0
1
0
0
0
0
0
0
0
0
36005000100
601
19
0
0
0
0
0
0
0
0
0
0
36005000100
602
16
0
0
0
0
0
0
0
0
0
0
36005000100
603
54
0
0
0
0
0
0
0
1
0
0
36005000100
604
53
0
0
0
0
0
0
0
1
0
1
36005000100
605
10
0
0
0
0
0
0
0
0
0
0
36005000100
606
18
0
0
0
0
0
0
0
0
0
0
36005000100
607
10
0
0
0
0
0
0
0
0
0
0
36005000100
608
4
0
0
0
0
0
0
0
0
0
0
36005000100
609
9
0
0
1
0
0
0
0
0
0
0
36005000100
610
32
0
0
0
0
0
0
0
0
0
0
36005000100
611
11
0
0
1
0
0
0
0
0
0
0
36005000100
612
11
0
2
0
0
0
0
0
0
0
0
36005000100
613
3
0
0
0
0
0
0
0
0
0
0
36005000100
614
4
0
0
0
0
0
0
0
0
0
0
36005000100
615
1
0
0
0
0
0
0
0
0
0
0
36005000100
616
2
0
0
0
0
0
0
0
0
0
0
36005000100
617
2
0
0
0
0
0
0
0
0
0
0
36005000100
618
3
0
0
0
0
0
0
0
0
0
0
36005000100
619
3
0
0
0
0
0
0
0
1
0
0
36005000100
620
1
0
0
0
0
1
0
0
0
0
0
36005000100
621
7
0
0
1
0
1
2
0
0
0
0
36005000100
622
6
0
1
0
0
0
0
0
0
0
1
36005000100
623
1
0
0
1
0
0
0
0
0
0
0
36005000100
624
6
0
1
0
1
1
0
0
0
0
0
36005000100
626
2
0
0
1
0
0
0
0
0
0
0
36005000100
627
1
0
0
0
0
0
0
0
0
0
0
36005000100
628
1
0
0
0
0
0
0
0
0
0
0
36005000100
629
1
0
0
1
0
0
0
0
0
0
0
36005000100
630
2
0
0
0
0
0
0
0
0
0
0
36005000100
631
3
0
0
1
0
0
0
0
0
0
0
36005000100
632
1
0
0
0
0
0
0
0
0
0
0
36005000100
633
3
0
2
0
1
0
0
0
0
0
0
36005000100
634
2
0
1
0
0
0
0
0
0
0
0
36005000100
635
2
0
0
0
0
0
0
0
0
0
0
36005000100
636
3
0
0
0
1
0
0
0
0
0
0
36005000100
637
1
0
0
0
0
0
0
0
0
0
0
36005000100
638
3
0
0
0
0
0
0
0
0
0
0
36005000100
639
6
0
0
1
0
0
0
0
0
0
0
36005000100
640
1
0
0
1
0
0
0
0
0
0
0
36005000100
641
2
0
0
0
0
0
0
0
0
0
0
36005000100
642
1
0
0
0
0
0
0
0
0
0
0
36005000100
643
32
0
1
0
9
0
0
0
0
0
4
36005000100
644
10
0
0
0
10
0
0
0
0
0
0
36005000100
645
23
0
3
0
14
0
0
0
0
0
0
36005000100
646
1
0
0
0
0
0
0
0
0
0
0
36005000100
647
1
0
0
0
0
0
0
0
0
0
0
36005000100
648
5
0
0
1
1
0
0
0
0
0
0
36005000100
649
5
0
0
0
0
0
0
0
0
0
0
36005000100
651
2
0
0
0
0
1
0
0
0
0
0
36005000100
653
4
0
0
2
0
0
0
0
0
0
0
36005000100
654
1
0
0
0
0
0
0
0
0
0
0
36005000100
656
4
0
0
1
0
0
0
0
0
0
0
36005000100
657
1
0
0
0
0
0
0
0
0
0
1
36005000100
658
21
0
3
0
0
0
0
0
0
0
0
36005000100
659
12
0
5
4
0
0
0
0
0
0
0
36005000200
576
1,700
9
15
14
12
2
1
5
1
2
13
36005000200
577
1,197
10
1
9
4
1
5
6
0
8
5
36005000200
578
1,360
12
2
20
14
2
4
4
10
6
1
36005000200
579
1,317
11
0
21
15
4
1
7
6
3
0
36005000200
580
1,988
14
0
35
27
6
2
3
5
1
4
36005000200
581
1,874
16
0
15
23
6
2
5
5
6
1
36005000200
582
4,152
17
7
34
24
19
5
13
4
14
24
36005000200
583
3,153
14
2
47
19
16
3
11
2
6
4
36005000200
584
1,694
10
6
20
9
4
10
8
1
7
3
36005000200
585
1,797
13
10
18
4
5
16
14
0
11
2
36005000200
586
1,266
17
16
16
5
2
2
9
0
2
1
36005000200
587
1,218
11
28
9
6
0
5
11
2
2
0
36005000200
588
925
8
9
13
17
0
1
13
2
2
6
36005000200
589
617
6
6
6
7
1
1
6
0
6
2
36005000200
590
1,291
8
3
9
12
0
3
13
9
5
0
36005000200
591
985
5
3
11
5
3
3
20
1
2
2
36005000200
592
2,061
10
5
27
24
9
3
16
4
4
5
36005000200
593
2,600
17
0
39
46
13
0
12
2
3
8
36005000200
594
2,105
15
0
24
29
21
4
10
3
0
9
36005000200
595
1,510
11
0
22
20
16
1
14
3
0
5
36005000200
596
1,777
16
0
41
20
14
1
10
5
3
0
36005000200
597
1,319
12
4
28
10
3
3
16
1
1
2
End of preview. Expand in Data Studio

πŸ™οΈ NYC Urban Indicators Dataset

GeoPandas Time Series NYC Open Data MIT License Hugging Face Datasets

πŸ“Š Download Dataset | πŸ—ΊοΈ Geospatial Panel Data | πŸ“ˆ 7 Years of NYC Data | πŸ” Census Tract Level

🎯 A Geospatial Time-Series Panel for Census-Tract Level Analysis in New York City

This dataset provides a comprehensive, monthly panel of urban indicators for New York City at the census tract level, spanning from January 2018 to December 2024. It aggregates data from multiple public sources, including NYPD, NYC 311, and the Department of Buildings (DOB), making it ideal for urban analytics, predictive modeling, and socioeconomic research.

Dataset Overview

✨ Dataset Highlights

Feature Description Value
πŸ“… Temporal Coverage January 2018 - December 2024 7+ years
πŸ—ΊοΈ Spatial Resolution Census tract level (GEOID) 2,168 tracts
πŸ“Š Data Points Monthly observations per tract 180,000+ records
πŸ”„ Update Frequency Static historical dataset Complete panel
πŸ“ˆ Data Sources NYPD, NYC 311, DOB Multi-agency

πŸš€ Why This Dataset Matters

πŸŽ“ For Researchers & Academics

Created to facilitate the study of urban dynamics by providing a clean, merged, and canonicalized data source. Perfect for:

  • Spatial-temporal analysis of urban patterns
  • Predictive modeling of crime and service demands
  • Socioeconomic research with neighborhood-level granularity
  • Policy impact assessment through longitudinal analysis

πŸ“Š For Data Scientists & Analysts

The data is structured as a panel dataset, with each row representing a unique combination of a census tract (GEOID) and a month. This structure is optimal for:

  • Time-series forecasting of urban indicators
  • Machine learning tasks like crime prediction
  • Geospatial analysis and mapping applications
  • Cross-sectional comparisons across neighborhoods

πŸ“ Dataset Structure

Core Files

πŸ“Š nyc_cesium_features.parquet - Primary Panel Dataset

  • 180,000+ observations across 2,168 census tracts
  • 84 monthly snapshots from 2018-01 to 2024-12
  • Multi-dimensional indicators: Crime, 311 requests, building permits
  • Optimized format: Parquet for fast loading and analysis

πŸ—ΊοΈ nyc_tracts.parquet - Geospatial Reference File

  • Census tract geometries in Well-Known Text (WKT) format
  • 2,168 unique census tracts covering all NYC boroughs
  • EPSG:4326 coordinate system for global compatibility
  • Ready for mapping: Compatible with GeoPandas and mapping libraries

πŸ“Š Data Schema & Variables

πŸ”‘ Primary Keys

  • GEOID: 11-digit census tract identifier (e.g., "36061000100")
  • month: Monthly timestamp (e.g., "2023-01")

🚨 Crime Indicators (NYPD Data)

  • crime_total: Total reported crimes per tract-month
  • crime_felony: Felony-level crimes (most severe)
  • crime_misd: Misdemeanor crimes (moderate severity)
  • crime_viol: Violation-level crimes (least severe)

πŸ“ž Service Requests (NYC 311 Data)

  • sr311_total: Total 311 service requests
  • Top 10 Complaint Types with individual counts:
    • Noise - Residential
    • Illegal Parking
    • Street Light Condition
    • Water System
    • And 6 more frequent complaint categories...

πŸ—οΈ Building Activity (DOB Data)

  • dob_permits_total: Total Department of Buildings permits issued
  • Includes construction, renovation, and building-related permits

πŸ› οΈ Data Sources & Methodology

πŸ“‹ Primary Data Sources

All data sourced from NYC Open Data Portal with proper attribution:

Source Agency Data Type Update Frequency
NYPD Complaint Data Police Department Crime reports by severity Daily
311 Service Requests Multiple agencies Citizen service requests Real-time
DOB Permit Issuances Buildings Department Construction permits Daily

πŸ”„ Data Processing Pipeline

  1. Data Extraction: Automated downloads from NYC Open Data APIs
  2. Temporal Aggregation: Monthly summaries by census tract
  3. Spatial Mapping: Geocoding and tract assignment
  4. Quality Assurance: Missing value handling and outlier detection
  5. Standardization: Consistent naming and data types
  6. Validation: Cross-checking with official statistics

πŸ’» Quick Start Guide

Installation

pip install datasets pandas geopandas shapely matplotlib

Basic Usage

from datasets import load_dataset
import pandas as pd
import geopandas as gpd
from shapely import wkt

# Load the datasets from Hugging Face Hub
features_ds = load_dataset("alidenewade/nyc-urban-analytics", 
                          split="train", 
                          data_files="nyc_cesium_features.parquet")
tracts_ds = load_dataset("alidenewade/nyc-urban-analytics", 
                        split="train", 
                        data_files="nyc_tracts.parquet")

# Convert to pandas DataFrames
features_df = features_ds.to_pandas()
tracts_df = tracts_ds.to_pandas()

print(f"πŸ“Š Panel Data Shape: {features_df.shape}")
print(f"πŸ—ΊοΈ Geographic Data Shape: {tracts_df.shape}")

πŸ—ΊοΈ Geospatial Analysis Example

Prepare Geographic Data

# Convert WKT strings to geometry objects
tracts_df['geometry'] = tracts_df['geometry'].apply(wkt.loads)

# Create GeoDataFrame
tracts_gdf = gpd.GeoDataFrame(tracts_df, geometry='geometry', crs="EPSG:4326")

Crime Hotspot Analysis

# Aggregate crime data for 2023
features_df['month'] = pd.to_datetime(features_df['month'])
crime_2023 = features_df[features_df['month'].dt.year == 2023]
crime_by_tract = crime_2023.groupby('GEOID')['crime_total'].sum().reset_index()

# Merge with geographic data
crime_map = tracts_gdf.merge(crime_by_tract, on='GEOID', how='left').fillna(0)

# Create choropleth map
import matplotlib.pyplot as plt
fig, ax = plt.subplots(figsize=(15, 10))
crime_map.plot(column='crime_total', 
               cmap='viridis', 
               legend=True,
               ax=ax)
ax.set_title('NYC Crime Density by Census Tract (2023)', fontsize=16)
plt.tight_layout()
plt.show()

πŸ“ˆ Advanced Analysis Examples

Time Series Analysis

# Analyze crime trends for a specific tract
tract_id = "36061000100"  # Example tract in Manhattan
tract_data = features_df[features_df['GEOID'] == tract_id].copy()
tract_data['month'] = pd.to_datetime(tract_data['month'])
tract_data = tract_data.sort_values('month')

# Plot time series
plt.figure(figsize=(12, 6))
plt.plot(tract_data['month'], tract_data['crime_total'], marker='o')
plt.title(f'Crime Trends - Census Tract {tract_id}')
plt.xlabel('Month')
plt.ylabel('Total Crimes')
plt.xticks(rotation=45)
plt.grid(True, alpha=0.3)
plt.tight_layout()
plt.show()

Service Request Analysis

# Top 311 complaint types correlation with crime
correlation_data = features_df[['crime_total', 'sr311_total']].corr()
print("Crime vs 311 Requests Correlation:")
print(correlation_data)

🎯 Use Cases & Applications

πŸ›οΈ Urban Planning & Policy

  • Resource Allocation: Identify high-need areas for police and city services
  • Infrastructure Planning: Correlate building permits with service demands
  • Policy Evaluation: Measure impact of interventions over time
  • Budget Optimization: Data-driven allocation of municipal resources

πŸŽ“ Academic Research

  • Urban Sociology: Study neighborhood dynamics and social patterns
  • Criminology: Analyze crime patterns and environmental factors
  • Public Policy: Evaluate effectiveness of urban interventions
  • Economics: Research property values and neighborhood change

πŸ€– Machine Learning & Data Science

  • Predictive Modeling: Forecast crime rates and service demands
  • Anomaly Detection: Identify unusual patterns in urban data
  • Clustering Analysis: Discover neighborhood typologies
  • Feature Engineering: Create spatial-temporal variables

πŸ“Š Business Intelligence

  • Risk Assessment: Location-based risk modeling for insurance/real estate
  • Market Analysis: Understand neighborhood characteristics for business decisions
  • Service Planning: Optimize delivery routes and service coverage
  • Investment Research: Data-driven real estate and development insights

πŸ“‹ Data Quality & Limitations

βœ… Strengths

  • Comprehensive Coverage: All NYC census tracts over 7 years
  • Multi-Source Integration: Rich, multi-dimensional urban indicators
  • Temporal Consistency: Standardized monthly aggregations
  • Spatial Precision: Census tract level for detailed analysis
  • Clean Processing: Automated QA/QC pipeline

⚠️ Limitations & Considerations

  • Reporting Bias: Crime data reflects reported incidents only
  • Temporal Lag: Some data may have reporting delays
  • Spatial Accuracy: Point-to-tract assignment may have edge cases
  • Missing Values: Some tract-months may have zero observations
  • Seasonal Patterns: Consider monthly variations in analysis

πŸ”§ Technical Specifications

File Formats & Sizes

  • Format: Apache Parquet for optimal performance
  • Compression: Snappy compression for fast I/O
  • Total Size: ~50MB compressed
  • Memory Usage: ~200MB when loaded in pandas

Performance Optimizations

  • Columnar Storage: Efficient querying and filtering
  • Data Types: Optimized integer and float precision
  • Indexing: Pre-sorted by GEOID and month
  • Compatibility: Works with pandas, polars, and dask

🀝 Contributing & Feedback

We welcome contributions to improve this dataset! Here's how you can help:

πŸ“ Data Enhancement

  • Additional Variables: Suggest new urban indicators to include
  • Quality Improvements: Report data inconsistencies or errors
  • Methodology Feedback: Propose better aggregation or processing methods
  • Documentation: Improve variable descriptions and usage examples

πŸ”§ Technical Contributions

  • Analysis Examples: Share interesting use cases and code
  • Visualization Tools: Create plotting utilities and templates
  • Performance Optimizations: Suggest faster loading/processing methods
  • Integration Guides: Help with other platforms and tools

πŸ“– Citation & Attribution

If you use this dataset in your research, please consider citing it as:

@misc{nyc_urban_analytics_2025,
  author = {alidenewade},
  title = {NYC Urban Indicators Dataset},
  year = {2025},
  publisher = {Hugging Face},
  journal = {Hugging Face Hub},
  howpublished = {\url{https://huggingface.co/datasets/alidenewade/nyc-urban-analytics}}
}

πŸ“„ License

This dataset is licensed under the MIT License, allowing for both academic and commercial use with proper attribution.

License Summary

  • βœ… Commercial use permitted
  • βœ… Modification and redistribution allowed
  • βœ… Private use permitted
  • ❗ No warranty provided
  • ❗ Attribution required

πŸ”— Related Resources

πŸ“Š Interactive Dashboard

Explore this data interactively with our NYC Urban Analytics Dashboard:

  • πŸš€ Live Dashboard
  • πŸ€– ML Predictions: Real-time crime risk classification
  • πŸ“ˆ Time Series: SARIMAX forecasting capabilities
  • πŸ—ΊοΈ Spatial Maps: Interactive choropleth visualizations

πŸ“š Documentation & Tutorials

  • πŸ“– Dataset Documentation: Detailed variable descriptions
  • πŸ’» Code Examples: Jupyter notebooks with analysis examples
  • πŸŽ₯ Tutorial Videos: Step-by-step analysis walkthroughs
  • πŸ“Š Analysis Templates: Ready-to-use analysis scripts

🌐 Data Sources

  • NYC Open Data: https://opendata.cityofnewyork.us
  • NYPD Complaint Data: Updated daily with citywide crime reports
  • NYC 311: Real-time citizen service requests
  • Department of Buildings: Construction and permit data

πŸ‘€ Author & Contact


πŸš€ Start Exploring Today!

Ready to dive into NYC's urban data? πŸ“Š

This dataset opens up endless possibilities for understanding urban dynamics, predicting trends, and informing policy decisions. Whether you're building ML models, conducting academic research, or exploring data science applications, you'll find rich insights waiting to be discovered.

πŸ“₯ Download the Dataset

Made with ❀️ for the urban analytics and data science community


⭐ If this dataset helps your research or projects, please consider citing it and sharing your findings with the community!

Downloads last month
48

Collection including alidenewade/nyc-urban-analytics