The dataset viewer is not available for this split.
Error code: StreamingRowsError
Exception: CastError
Message: Couldn't cast
id: string
title: string
code_file: string
language: string
kernel_type: string
is_private: bool
enable_gpu: bool
enable_tpu: bool
enable_internet: bool
dataset_sources: list<item: string>
child 0, item: string
resources: list<item: struct<path: string, description: string, schema: struct<fields: list<item: struct<name: (... 46 chars omitted)
child 0, item: struct<path: string, description: string, schema: struct<fields: list<item: struct<name: string, typ (... 34 chars omitted)
child 0, path: string
child 1, description: string
child 2, schema: struct<fields: list<item: struct<name: string, type: string, description: string>>>
child 0, fields: list<item: struct<name: string, type: string, description: string>>
child 0, item: struct<name: string, type: string, description: string>
child 0, name: string
child 1, type: string
child 2, description: string
description: string
subtitle: string
isPrivate: bool
licenses: list<item: struct<name: string>>
child 0, item: struct<name: string>
child 0, name: string
keywords: list<item: string>
child 0, item: string
to
{'title': Value('string'), 'id': Value('string'), 'subtitle': Value('string'), 'description': Value('string'), 'isPrivate': Value('bool'), 'licenses': List({'name': Value('string')}), 'keywords': List(Value('string')), 'resources': List({'path': Value('string'), 'description': Value('string'), 'schema': {'fields': List({'name': Value('string'), 'type': Value('string'), 'description': Value('string')})}})}
because column names don't match
Traceback: Traceback (most recent call last):
File "/src/services/worker/src/worker/utils.py", line 149, in get_rows_or_raise
return get_rows(
dataset=dataset,
...<4 lines>...
column_names=column_names,
)
File "/src/libs/libcommon/src/libcommon/utils.py", line 274, in decorator
return func(*args, **kwargs)
File "/src/services/worker/src/worker/utils.py", line 129, in get_rows
rows_plus_one = list(itertools.islice(safe_iter(ds, dataset=dataset), rows_max_number + 1))
File "/src/services/worker/src/worker/utils.py", line 544, in safe_iter
yield from ds.decode(False) if ds.features else ds
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 3074, in __iter__
for key, example in ex_iterable:
^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2578, in __iter__
for key, pa_table in self._iter_arrow():
~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 2603, in _iter_arrow
for key, pa_table in self.ex_iterable._iter_arrow():
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 577, in _iter_arrow
for key, pa_table in iterator:
^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/iterable_dataset.py", line 459, in _iter_arrow
for key, pa_table in self.generate_tables_fn(**gen_kwags):
~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 373, in _generate_tables
self._cast_table(pa_table, json_field_paths=json_field_paths),
~~~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/datasets/packaged_modules/json/json.py", line 132, in _cast_table
pa_table = table_cast(pa_table, self.info.features.arrow_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
id: string
title: string
code_file: string
language: string
kernel_type: string
is_private: bool
enable_gpu: bool
enable_tpu: bool
enable_internet: bool
dataset_sources: list<item: string>
child 0, item: string
resources: list<item: struct<path: string, description: string, schema: struct<fields: list<item: struct<name: (... 46 chars omitted)
child 0, item: struct<path: string, description: string, schema: struct<fields: list<item: struct<name: string, typ (... 34 chars omitted)
child 0, path: string
child 1, description: string
child 2, schema: struct<fields: list<item: struct<name: string, type: string, description: string>>>
child 0, fields: list<item: struct<name: string, type: string, description: string>>
child 0, item: struct<name: string, type: string, description: string>
child 0, name: string
child 1, type: string
child 2, description: string
description: string
subtitle: string
isPrivate: bool
licenses: list<item: struct<name: string>>
child 0, item: struct<name: string>
child 0, name: string
keywords: list<item: string>
child 0, item: string
to
{'title': Value('string'), 'id': Value('string'), 'subtitle': Value('string'), 'description': Value('string'), 'isPrivate': Value('bool'), 'licenses': List({'name': Value('string')}), 'keywords': List(Value('string')), 'resources': List({'path': Value('string'), 'description': Value('string'), 'schema': {'fields': List({'name': Value('string'), 'type': Value('string'), 'description': Value('string')})}})}
because column names don't matchNeed help to make the dataset viewer work? Make sure to review how to configure the dataset viewer, and open a discussion for direct support.
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
Chicago Crime Incidents
Subtitle: 200,000 recent Chicago crimes with type, block location & arrest status
Tags: tabular, crime, chicago
Dataset File: chicago_crimes.csv (200,000 rows, 40 columns, 59.6 MB)
Provenance & Source: City of Chicago Open Data Portal (data.cityofchicago.org)
Expected Update Frequency: monthly
π Description
200,000 recent Chicago crime incidents
The City of Chicago publishes every reported crime with a block-level location, IUCR/FBI codes and arrest status. This dataset contains the 200,000 most recent incidents with 40 parameters.
- Incident β id, case number, date/time, IUCR code, primary type, description, FBI code and the derived FBI category and coarse crime band.
- Location β block address, location description, beat, district, ward, community area, State Plane coordinates and latitude/longitude.
- Outcome β arrest and domestic flags.
- Derived β violent/property/drug/public-order and theft flags, firearm mention, night and weekend flags, hour/month/weekday, year-month, location and text-length measures.
69,249 incidents are violent, 10,411 mention a firearm, and 30,919 (15.5%) resulted in an arrest. The block-level geography supports hot-spot mapping without exposing exact addresses.
π§Ύ Columns (40)
id, case_number, date, block, iucr, primary_type, description, location_description, arrest, domestic, beat, district, ward, community_area, fbi_code, x_coordinate, y_coordinate, year, updated_on, latitude, longitude, fbi_category, crime_category, is_violent, is_property, is_drug, is_public_order, is_theft, is_firearm, is_arrest, is_domestic, hour, month, day_of_week, is_weekend, has_location, block_length, description_length, is_night, year_month
π‘ Ideas for using this data
- Hot-spot mapping β hex-bin the coordinates and compare violent vs property crime.
- Temporal patterns β hour-of-week heatmaps by crime category.
- Arrest propensity β which crime types and districts clear cases by arrest?
- Firearm incidents β spatial and temporal clustering of firearm mentions.
- District comparison β crime mix and arrest rates across the 22 police districts.
- Seasonality β monthly counts by category over the sample window.
- Location type β street vs residence vs commercial mix by crime type.
- Forecasting β build a weekly district-level count model.
- Equity analysis β join community areas to census data (external) and test enforcement patterns.
π Files
| File | What it is |
|---|---|
chicago_crimes.csv |
200,000 crime incidents x 40 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
crime, chicago, open-data, urban, geospatial, public-safety, socrata
π Provenance
- Source: City of Chicago Open Data Portal, Crimes 2001 to present,
https://data.cityofchicago.org/resource/ijzp-q8t2.json(Socrata). - Scope: the 200,000 most recent incidents by
date, five pages of 40,000. - Processing: timestamps parsed, crime and FBI categories mapped, temporal and text features derived; no addresses below block level are included upstream.
- Snapshot date: 22 November 2026.
π Update frequency
Daily. The Chicago data portal updates the crime dataset continuously.
β οΈ Caveats
- This is a recency sample, not the full 2001-present history.
- Crime data reflects reports to police, not actual crime incidence.
- Records can be reclassified or updated after initial publication.
- Coordinates are block-level and occasionally missing or rounded.
- The
yearcolumn follows the source and may differ from the parsed date year at year boundaries. - Firearm flag is a keyword match on the description and will miss some cases.
- Arrest does not imply conviction.
π Licence
City of Chicago Open Data is licensed CC BY 4.0 β attribution required.
π Column Definitions & File Header
| # | Column Name | Data Type | Description |
|---|---|---|---|
| 1 | id |
number |
Incident record identifier. |
| 2 | case_number |
string |
Chicago Police Department case number. |
| 3 | date |
datetime |
Incident date and time (local). |
| 4 | block |
string |
Block-level address (hundred-block, not an exact address). |
| 5 | iucr |
string |
Illinois Uniform Crime Reporting code. |
| 6 | primary_type |
string |
Primary crime type. |
| 7 | description |
string |
Secondary description / subtype. |
| 8 | location_description |
string |
Location type (street, residence, apartment, ...). |
| 9 | arrest |
boolean |
true when an arrest was made. |
| 10 | domestic |
boolean |
true when the incident was domestic. |
| 11 | beat |
number |
Police beat. |
| 12 | district |
number |
Police district. |
| 13 | ward |
number |
City ward. |
| 14 | community_area |
number |
Community area number. |
| 15 | fbi_code |
string |
FBI crime code. |
| 16 | x_coordinate |
number |
State plane X coordinate. |
| 17 | y_coordinate |
number |
State plane Y coordinate. |
| 18 | year |
number |
Year reported in the source. |
| 19 | updated_on |
datetime |
Last update timestamp of the record. |
| 20 | latitude |
number |
Latitude (WGS84). |
| 21 | longitude |
number |
Longitude (WGS84). |
| 22 | fbi_category |
string |
Human-readable FBI crime category. |
| 23 | crime_category |
string |
Derived Violent / Property / Drug / Public order / Other band. |
| 24 | is_violent |
boolean |
true for violent crime types. |
| 25 | is_property |
boolean |
true for property crime types. |
| 26 | is_drug |
boolean |
true for narcotics offences. |
| 27 | is_public_order |
boolean |
true for public-order offences. |
| 28 | is_theft |
boolean |
true for theft/larceny. |
| 29 | is_firearm |
boolean |
true when the description mentions a firearm/handgun. |
| 30 | is_arrest |
boolean |
true when arrest is true. |
| 31 | is_domestic |
boolean |
true when domestic is true. |
| 32 | hour |
number |
Hour of day (0-23). |
| 33 | month |
number |
Month number. |
| 34 | day_of_week |
string |
Weekday name. |
| 35 | is_weekend |
boolean |
true for Saturday/Sunday. |
| 36 | has_location |
boolean |
true when latitude and longitude are present. |
| 37 | block_length |
number |
Characters in the block address. |
| 38 | description_length |
number |
Characters in the secondary description. |
| 39 | is_night |
boolean |
true for incidents between 20:00 and 05:59. |
| 40 | year_month |
string |
Year-month string for monthly aggregation. |
π 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
- 37