Dataset Preview
Duplicate
The full dataset viewer is not available (click to read why). Only showing a preview of the rows.
The dataset generation failed because of a cast error
Error code:   DatasetGenerationCastError
Exception:    DatasetGenerationCastError
Message:      An error occurred while generating the dataset

All the data files must have the same columns, but at some point there are 52 new columns ({'cross_street_2', 'created_date', 'hour', 'has_location', 'incident_zip', 'response_hours', 'response_days', 'is_closed', 'cross_street_1', 'closed_date', 'agency_name', 'resolution_length', 'descriptor_length', 'intersection_street_2', 'due_date', 'police_precinct', 'complaint_category', 'resolution_action_updated_date', 'agency', 'borough', 'day_of_week', 'descriptor', 'community_board', 'open_data_channel_type', 'is_open', 'is_heat_hot_water', 'incident_address', 'y_coordinate', 'is_noise', 'latitude', 'year', 'unique_key', 'council_district', 'street_name', 'resolution_description', 'park_borough', 'facility_type', 'closed_within_1_day', 'address_type', 'month', 'city', 'landmark', 'is_street_condition', 'closed_within_7_days', 'is_weekend', 'park_facility_name', 'intersection_street_1', 'status', 'complaint_type', 'longitude', 'x_coordinate', 'location_type'}) and 3 missing columns ({'data_type', 'column', 'description'}).

This happened while the csv dataset builder was generating data using

hf://datasets/EduDevCommons/nyc-311-service-requests/nyc_311_requests.csv (at revision 19c187943ab5d4158786d2d439f7d2a27e8a72ba), ['hf://datasets/EduDevCommons/nyc-311-service-requests@19c187943ab5d4158786d2d439f7d2a27e8a72ba/data_dictionary.csv', 'hf://datasets/EduDevCommons/nyc-311-service-requests@19c187943ab5d4158786d2d439f7d2a27e8a72ba/nyc_311_requests.csv', 'hf://datasets/EduDevCommons/nyc-311-service-requests@19c187943ab5d4158786d2d439f7d2a27e8a72ba/nyc_311_requests.csv.zip']

Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)
Traceback:    Traceback (most recent call last):
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1856, in _prepare_split_single
                  writer.write_table(table)
                  ~~~~~~~~~~~~~~~~~~^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 811, in write_table
                  self._write_table(pa_table, writer_batch_size=writer_batch_size)
                  ~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/arrow_writer.py", line 822, in _write_table
                  pa_table = table_cast(pa_table, self._schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2394, in table_cast
                  return cast_table_to_schema(table, schema)
                File "/usr/local/lib/python3.14/site-packages/datasets/table.py", line 2322, in cast_table_to_schema
                  raise CastError(
                  ...<3 lines>...
                  )
              datasets.table.CastError: Couldn't cast
              unique_key: int64
              created_date: string
              closed_date: string
              agency: string
              agency_name: string
              complaint_type: string
              descriptor: string
              location_type: string
              incident_zip: double
              incident_address: string
              street_name: string
              cross_street_1: string
              cross_street_2: string
              intersection_street_1: string
              intersection_street_2: string
              address_type: string
              city: string
              landmark: string
              facility_type: string
              status: string
              due_date: string
              resolution_description: string
              resolution_action_updated_date: string
              community_board: string
              council_district: double
              police_precinct: string
              borough: string
              park_borough: string
              open_data_channel_type: string
              park_facility_name: string
              latitude: double
              longitude: double
              x_coordinate: double
              y_coordinate: double
              response_hours: double
              response_days: double
              is_closed: bool
              is_open: bool
              closed_within_1_day: bool
              closed_within_7_days: bool
              year: int64
              month: int64
              day_of_week: string
              hour: int64
              is_weekend: bool
              complaint_category: string
              has_location: bool
              resolution_length: int64
              descriptor_length: int64
              is_noise: bool
              is_heat_hot_water: bool
              is_street_condition: bool
              -- schema metadata --
              pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 6764
              to
              {'column': Value('string'), 'data_type': Value('string'), 'description': Value('string')}
              because column names don't match
              
              During handling of the above exception, another exception occurred:
              
              Traceback (most recent call last):
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 1379, in compute_config_parquet_and_info_response
                  parquet_operations, partial, estimated_dataset_info = stream_convert_to_parquet(
                                                                        ~~~~~~~~~~~~~~~~~~~~~~~~~^
                      builder, max_dataset_size_bytes=max_dataset_size_bytes
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  )
                  ^
                File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 956, in stream_convert_to_parquet
                  builder._prepare_split(split_generator=splits_generators[split], file_format="parquet")
                  ~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1702, in _prepare_split
                  for job_id, done, content in self._prepare_split_single(
                                               ~~~~~~~~~~~~~~~~~~~~~~~~~~^
                      gen_kwargs=gen_kwargs, job_id=job_id, **_prepare_split_args
                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
                  ):
                  ^
                File "/usr/local/lib/python3.14/site-packages/datasets/builder.py", line 1858, in _prepare_split_single
                  raise DatasetGenerationCastError.from_cast_error(
                  ...<4 lines>...
                  )
              datasets.exceptions.DatasetGenerationCastError: An error occurred while generating the dataset
              
              All the data files must have the same columns, but at some point there are 52 new columns ({'cross_street_2', 'created_date', 'hour', 'has_location', 'incident_zip', 'response_hours', 'response_days', 'is_closed', 'cross_street_1', 'closed_date', 'agency_name', 'resolution_length', 'descriptor_length', 'intersection_street_2', 'due_date', 'police_precinct', 'complaint_category', 'resolution_action_updated_date', 'agency', 'borough', 'day_of_week', 'descriptor', 'community_board', 'open_data_channel_type', 'is_open', 'is_heat_hot_water', 'incident_address', 'y_coordinate', 'is_noise', 'latitude', 'year', 'unique_key', 'council_district', 'street_name', 'resolution_description', 'park_borough', 'facility_type', 'closed_within_1_day', 'address_type', 'month', 'city', 'landmark', 'is_street_condition', 'closed_within_7_days', 'is_weekend', 'park_facility_name', 'intersection_street_1', 'status', 'complaint_type', 'longitude', 'x_coordinate', 'location_type'}) and 3 missing columns ({'data_type', 'column', 'description'}).
              
              This happened while the csv dataset builder was generating data using
              
              hf://datasets/EduDevCommons/nyc-311-service-requests/nyc_311_requests.csv (at revision 19c187943ab5d4158786d2d439f7d2a27e8a72ba), ['hf://datasets/EduDevCommons/nyc-311-service-requests@19c187943ab5d4158786d2d439f7d2a27e8a72ba/data_dictionary.csv', 'hf://datasets/EduDevCommons/nyc-311-service-requests@19c187943ab5d4158786d2d439f7d2a27e8a72ba/nyc_311_requests.csv', 'hf://datasets/EduDevCommons/nyc-311-service-requests@19c187943ab5d4158786d2d439f7d2a27e8a72ba/nyc_311_requests.csv.zip']
              
              Please either edit the data files to have matching columns, or separate them into different configurations (see docs at https://hf.co/docs/hub/datasets-manual-configuration#multiple-configurations)

Need help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.

column
string
data_type
string
description
string
unique_key
number
Unique service-request identifier.
created_date
datetime
Request creation timestamp (local time).
closed_date
datetime
Request closure timestamp, where closed.
agency
string
Responsible agency code.
agency_name
string
Responsible agency name.
complaint_type
string
Complaint type as selected by the caller.
descriptor
string
Complaint sub-type / descriptor.
location_type
string
Location type (residential, commercial, ...).
incident_zip
number
ZIP code of the incident.
incident_address
string
Street address of the incident.
street_name
string
Street name.
cross_street_1
string
First cross street.
cross_street_2
string
Second cross street.
intersection_street_1
string
First intersection street.
intersection_street_2
string
Second intersection street.
address_type
string
Address type (address, blockface, intersection, ...).
city
string
City (usually New York).
landmark
string
Landmark name, if any.
facility_type
string
Facility type, if the request concerns a facility.
status
string
Request status (Open, In Progress, Closed, ...).
due_date
datetime
Agency due date.
resolution_description
string
Agency resolution text.
resolution_action_updated_date
datetime
Last resolution update.
community_board
string
Community board district.
council_district
number
City council district.
police_precinct
string
Police precinct.
borough
string
Borough of the incident.
park_borough
string
Parks department borough.
open_data_channel_type
string
How the request was submitted (phone, online, mobile, ...).
park_facility_name
string
Park or facility name.
latitude
number
Latitude (WGS84).
longitude
number
Longitude (WGS84).
x_coordinate
number
State plane X coordinate.
y_coordinate
number
State plane Y coordinate.
response_hours
number
Closed minus created, in hours.
response_days
number
response_hours / 24.
is_closed
boolean
true when a closed_date is present.
is_open
boolean
true when status is Open.
closed_within_1_day
boolean
true when closed within 24 hours.
closed_within_7_days
boolean
true when closed within 7 days.
year
number
Year the request was created.
month
number
Month number.
day_of_week
string
Weekday name.
hour
number
Hour of creation (0-23).
is_weekend
boolean
true for Saturday/Sunday.
complaint_category
string
Coarse category derived from complaint_type.
has_location
boolean
true when latitude and longitude are present.
resolution_length
number
Characters in the resolution description.
descriptor_length
number
Characters in the descriptor.
is_noise
boolean
true for noise complaints.
is_heat_hot_water
boolean
true for heat/hot-water complaints.
is_street_condition
boolean
true for street-condition complaints.
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
null
End of preview.

YAML Metadata Warning:The task_categories "tabular" is not in the official list: text-classification, token-classification, table-question-answering, question-answering, zero-shot-classification, translation, summarization, feature-extraction, text-generation, fill-mask, sentence-similarity, text-to-speech, text-to-audio, automatic-speech-recognition, audio-to-audio, audio-classification, audio-text-to-text, voice-activity-detection, depth-estimation, image-classification, object-detection, image-segmentation, text-to-image, image-to-text, image-to-image, image-to-video, unconditional-image-generation, video-classification, reinforcement-learning, robotics, tabular-classification, tabular-regression, tabular-to-text, table-to-text, multiple-choice, text-ranking, text-retrieval, time-series-forecasting, text-to-video, image-text-to-text, image-text-to-image, image-text-to-video, visual-question-answering, document-question-answering, zero-shot-image-classification, graph-ml, mask-generation, zero-shot-object-detection, text-to-3d, image-to-3d, image-feature-extraction, video-text-to-text, keypoint-detection, visual-document-retrieval, any-to-any, video-to-video, other

NYC 311 Service Requests

Subtitle: 200,000 NYC 311 requests with agency, location and resolution details

Tags: tabular, urban, civic

Dataset File: nyc_311_requests.csv (200,000 rows, 52 columns, 152.8 MB)

Provenance & Source: NYC Open Data Portal (data.cityofnewyork.us)

Expected Update Frequency: monthly


πŸ“– Description

200,000 New York City service requests

NYC 311 is the city's non-emergency request system: noise, heat, potholes, sanitation, water, trees and more. This dataset takes the 200,000 most recent requests and expands each into 52 parameters.

  • Request identity β€” unique key, created and closed timestamps, status, due date, channel.
  • Responsibility β€” agency code and name, complaint type, descriptor, facility type.
  • Location β€” incident address, street, cross streets, ZIP, borough, community board, council district, police precinct, park facility, latitude/longitude and State Plane coordinates.
  • Outcome β€” resolution description and last resolution update.
  • Derived β€” response hours and days, closed flags, 1-day and 7-day closure flags, year/month/ weekday/hour, weekend flag, coarse complaint category, location flag, text lengths and topic flags.

153,951 requests (77.0%) are closed, 33,098 are noise complaints, and requests span 6 boroughs β€” a ready-made civic-operations and response-time dataset.

🧾 Columns (52)

unique_key, created_date, closed_date, agency, agency_name, complaint_type, descriptor, location_type, incident_zip, incident_address, street_name, cross_street_1, cross_street_2, intersection_street_1, intersection_street_2, address_type, city, landmark, facility_type, status, due_date, resolution_description, resolution_action_updated_date, community_board, council_district, police_precinct, borough, park_borough, open_data_channel_type, park_facility_name, latitude, longitude, x_coordinate, y_coordinate, response_hours, response_days, is_closed, is_open, closed_within_1_day, closed_within_7_days, year, month, day_of_week, hour, is_weekend, complaint_category, has_location, resolution_length, descriptor_length, is_noise, is_heat_hot_water, is_street_condition

πŸ’‘ Ideas for using this data

  1. Response-time equity β€” median closure time by borough, ZIP and complaint type.
  2. Agency performance β€” which agencies close fastest, and how much do they backload?
  3. Seasonality β€” heat complaints in winter, noise in summer; plot a heatmap by month and hour.
  4. Channel shift β€” phone vs online vs mobile over time.
  5. Geography β€” hex-bin request density and compare with population or income.
  6. Backlog β€” open requests by age and type; which categories stall?
  7. Resolution text NLP β€” cluster resolution descriptions to find recurring outcomes.
  8. Classification β€” predict the responsible agency from the complaint text.
  9. Equity audit β€” response time vs neighbourhood demographics (external join required).

πŸ“ Files

File What it is
nyc_311_requests.csv 200,000 service requests x 52 parameters.
data_dictionary.csv Column / type / description for every field.
notebook.ipynb Starter notebook that loads the CSV and analyses it.
dataset-metadata.json Kaggle API metadata.
about.md Plain-text About block.

🏷️ Tags

nyc, 311, civic, open-data, service-requests, urban, response-time

πŸ”— Provenance

  • Source: NYC Open Data, 311 Service Requests from 2010 to present, https://data.cityofnewyork.us/resource/erm2-nwe9.json (Socrata).
  • Scope: the 200,000 most recent requests by created_date, five pages of 40,000.
  • Processing: timestamps parsed, response times and calendar fields derived, complaint types mapped to a coarse category, topic flags added.
  • Snapshot date: 22 November 2026.

πŸ”„ Update frequency

Daily. New York City publishes 311 requests continuously.

⚠️ Caveats

  • This is a recency sample, not a random or complete historical extract.
  • Timestamps are local New York time; daylight-saving transitions are not normalised.
  • Open requests have no closed_date and therefore no response time.
  • Complaint types are free-text choices and change over the years.
  • Coordinates are missing for a minority of requests (e.g. anonymous or address-only).
  • Resolution descriptions are operator text and can be terse or boilerplate.
  • The 200,000-row sample may not support fine-grained historical comparisons.

πŸ“œ Licence

NYC Open Data is licensed under the Open Data Commons Attribution License.

πŸ“‹ Column Definitions & File Header

# Column Name Data Type Description
1 unique_key number Unique service-request identifier.
2 created_date datetime Request creation timestamp (local time).
3 closed_date datetime Request closure timestamp, where closed.
4 agency string Responsible agency code.
5 agency_name string Responsible agency name.
6 complaint_type string Complaint type as selected by the caller.
7 descriptor string Complaint sub-type / descriptor.
8 location_type string Location type (residential, commercial, ...).
9 incident_zip number ZIP code of the incident.
10 incident_address string Street address of the incident.
11 street_name string Street name.
12 cross_street_1 string First cross street.
13 cross_street_2 string Second cross street.
14 intersection_street_1 string First intersection street.
15 intersection_street_2 string Second intersection street.
16 address_type string Address type (address, blockface, intersection, ...).
17 city string City (usually New York).
18 landmark string Landmark name, if any.
19 facility_type string Facility type, if the request concerns a facility.
20 status string Request status (Open, In Progress, Closed, ...).
21 due_date datetime Agency due date.
22 resolution_description string Agency resolution text.
23 resolution_action_updated_date datetime Last resolution update.
24 community_board string Community board district.
25 council_district number City council district.
26 police_precinct string Police precinct.
27 borough string Borough of the incident.
28 park_borough string Parks department borough.
29 open_data_channel_type string How the request was submitted (phone, online, mobile, ...).
30 park_facility_name string Park or facility name.
31 latitude number Latitude (WGS84).
32 longitude number Longitude (WGS84).
33 x_coordinate number State plane X coordinate.
34 y_coordinate number State plane Y coordinate.
35 response_hours number Closed minus created, in hours.
36 response_days number response_hours / 24.
37 is_closed boolean true when a closed_date is present.
38 is_open boolean true when status is Open.
39 closed_within_1_day boolean true when closed within 24 hours.
40 closed_within_7_days boolean true when closed within 7 days.
41 year number Year the request was created.
42 month number Month number.
43 day_of_week string Weekday name.
44 hour number Hour of creation (0-23).
45 is_weekend boolean true for Saturday/Sunday.
46 complaint_category string Coarse category derived from complaint_type.
47 has_location boolean true when latitude and longitude are present.
48 resolution_length number Characters in the resolution description.
49 descriptor_length number Characters in the descriptor.
50 is_noise boolean true for noise complaints.
51 is_heat_hot_water boolean true for heat/hot-water complaints.
52 is_street_condition boolean true for street-condition complaints.

🌟 Support & Community

If you find this dataset valuable for your research, machine learning projects, or data explorations, please give it an upvote (πŸ‘) on Kaggle! Feedback, questions, and community notebook submissions are warmly welcomed in the Discussions tab.

Downloads last month
24