Dataset Preview
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 24 new columns ({'PD_CD', 'CMPLNT_FR_DT', 'Longitude', 'CRM_ATPT_CPTD_CD', 'CMPLNT_NUM', 'CMPLNT_FR_TM', 'HADEVELOPT', 'LOC_OF_OCCUR_DESC', 'ADDR_PCT_CD', 'PD_DESC', 'Y_COORD_CD', 'RPT_DT', 'JURIS_DESC', 'Latitude', 'CMPLNT_TO_DT', 'PARKS_NM', 'BORO_NM', 'KY_CD', 'OFNS_DESC', 'X_COORD_CD', 'LAW_CAT_CD', 'PREM_TYP_DESC', 'Lat_Lon', 'CMPLNT_TO_TM'}) and 2 missing columns ({'Description', 'Column'}).
This happened while the csv dataset builder was generating data using
hf://datasets/jason1966/adamschroeder_crimes-new-york-city/NYPD_Complaint_Data_Historic.csv (at revision 623f4ab81145ecbe356e64ea5349acbcbdef03a0), [/tmp/hf-datasets-cache/medium/datasets/61873781986686-config-parquet-and-info-jason1966-adamschroeder_c-52be07ac/hub/datasets--jason1966--adamschroeder_crimes-new-york-city/snapshots/623f4ab81145ecbe356e64ea5349acbcbdef03a0/Crime_Column_Description.csv (origin=hf://datasets/jason1966/adamschroeder_crimes-new-york-city@623f4ab81145ecbe356e64ea5349acbcbdef03a0/Crime_Column_Description.csv), /tmp/hf-datasets-cache/medium/datasets/61873781986686-config-parquet-and-info-jason1966-adamschroeder_c-52be07ac/hub/datasets--jason1966--adamschroeder_crimes-new-york-city/snapshots/623f4ab81145ecbe356e64ea5349acbcbdef03a0/NYPD_Complaint_Data_Historic.csv (origin=hf://datasets/jason1966/adamschroeder_crimes-new-york-city@623f4ab81145ecbe356e64ea5349acbcbdef03a0/NYPD_Complaint_Data_Historic.csv), /tmp/hf-datasets-cache/medium/datasets/61873781986686-config-parquet-and-info-jason1966-adamschroeder_c-52be07ac/hub/datasets--jason1966--adamschroeder_crimes-new-york-city/snapshots/623f4ab81145ecbe356e64ea5349acbcbdef03a0/Population_by_Borough_NYC.csv (origin=hf://datasets/jason1966/adamschroeder_crimes-new-york-city@623f4ab81145ecbe356e64ea5349acbcbdef03a0/Population_by_Borough_NYC.csv)]
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.12/site-packages/datasets/builder.py", line 1890, in _prepare_split_single
writer.write_table(table)
File "/usr/local/lib/python3.12/site-packages/datasets/arrow_writer.py", line 760, in write_table
pa_table = table_cast(pa_table, self._schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2272, in table_cast
return cast_table_to_schema(table, schema)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/table.py", line 2218, in cast_table_to_schema
raise CastError(
datasets.table.CastError: Couldn't cast
CMPLNT_NUM: int64
CMPLNT_FR_DT: string
CMPLNT_FR_TM: string
CMPLNT_TO_DT: string
CMPLNT_TO_TM: string
RPT_DT: string
KY_CD: int64
OFNS_DESC: string
PD_CD: double
PD_DESC: string
CRM_ATPT_CPTD_CD: string
LAW_CAT_CD: string
JURIS_DESC: string
BORO_NM: string
ADDR_PCT_CD: int64
LOC_OF_OCCUR_DESC: string
PREM_TYP_DESC: string
PARKS_NM: string
HADEVELOPT: string
X_COORD_CD: double
Y_COORD_CD: double
Latitude: double
Longitude: double
Lat_Lon: string
-- schema metadata --
pandas: '{"index_columns": [{"kind": "range", "name": null, "start": 0, "' + 3131
to
{'Column': 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 1347, in compute_config_parquet_and_info_response
parquet_operations = convert_to_parquet(builder)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/src/services/worker/src/worker/job_runners/config/parquet_and_info.py", line 980, in convert_to_parquet
builder.download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 884, in download_and_prepare
self._download_and_prepare(
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 947, in _download_and_prepare
self._prepare_split(split_generator, **prepare_split_kwargs)
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1739, in _prepare_split
for job_id, done, content in self._prepare_split_single(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/datasets/builder.py", line 1892, in _prepare_split_single
raise DatasetGenerationCastError.from_cast_error(
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 24 new columns ({'PD_CD', 'CMPLNT_FR_DT', 'Longitude', 'CRM_ATPT_CPTD_CD', 'CMPLNT_NUM', 'CMPLNT_FR_TM', 'HADEVELOPT', 'LOC_OF_OCCUR_DESC', 'ADDR_PCT_CD', 'PD_DESC', 'Y_COORD_CD', 'RPT_DT', 'JURIS_DESC', 'Latitude', 'CMPLNT_TO_DT', 'PARKS_NM', 'BORO_NM', 'KY_CD', 'OFNS_DESC', 'X_COORD_CD', 'LAW_CAT_CD', 'PREM_TYP_DESC', 'Lat_Lon', 'CMPLNT_TO_TM'}) and 2 missing columns ({'Description', 'Column'}).
This happened while the csv dataset builder was generating data using
hf://datasets/jason1966/adamschroeder_crimes-new-york-city/NYPD_Complaint_Data_Historic.csv (at revision 623f4ab81145ecbe356e64ea5349acbcbdef03a0), [/tmp/hf-datasets-cache/medium/datasets/61873781986686-config-parquet-and-info-jason1966-adamschroeder_c-52be07ac/hub/datasets--jason1966--adamschroeder_crimes-new-york-city/snapshots/623f4ab81145ecbe356e64ea5349acbcbdef03a0/Crime_Column_Description.csv (origin=hf://datasets/jason1966/adamschroeder_crimes-new-york-city@623f4ab81145ecbe356e64ea5349acbcbdef03a0/Crime_Column_Description.csv), /tmp/hf-datasets-cache/medium/datasets/61873781986686-config-parquet-and-info-jason1966-adamschroeder_c-52be07ac/hub/datasets--jason1966--adamschroeder_crimes-new-york-city/snapshots/623f4ab81145ecbe356e64ea5349acbcbdef03a0/NYPD_Complaint_Data_Historic.csv (origin=hf://datasets/jason1966/adamschroeder_crimes-new-york-city@623f4ab81145ecbe356e64ea5349acbcbdef03a0/NYPD_Complaint_Data_Historic.csv), /tmp/hf-datasets-cache/medium/datasets/61873781986686-config-parquet-and-info-jason1966-adamschroeder_c-52be07ac/hub/datasets--jason1966--adamschroeder_crimes-new-york-city/snapshots/623f4ab81145ecbe356e64ea5349acbcbdef03a0/Population_by_Borough_NYC.csv (origin=hf://datasets/jason1966/adamschroeder_crimes-new-york-city@623f4ab81145ecbe356e64ea5349acbcbdef03a0/Population_by_Borough_NYC.csv)]
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 | Description string |
|---|---|
CMPLNT_NUM | Randomly generated persistent ID for each complaint |
CMPLNT_FR_DT | Exact date of occurrence for the reported event (or starting date of occurrence, if CMPLNT_TO_DT exists) |
CMPLNT_FR_TM | Exact time of occurrence for the reported event (or starting time of occurrence, if CMPLNT_TO_TM exists) |
CMPLNT_TO_DT | Ending date of occurrence for the reported event, if exact time of occurrence is unknown |
CMPLNT_TO_TM | Ending time of occurrence for the reported event, if exact time of occurrence is unknown |
RPT_DT | Date event was reported to police |
KY_CD | Three digit offense classification code |
OFNS_DESC | Description of offense corresponding with key code |
PD_CD | Three digit internal classification code (more granular than Key Code) |
PD_DESC | Description of internal classification corresponding with PD code (more granular than Offense Description) |
CRM_ATPT_CPTD_CD | Indicator of whether crime was successfully completed or attempted, but failed or was interrupted prematurely |
LAW_CAT_CD | Level of offense: felony, misdemeanor, violation |
JURIS_DESC | Jurisdiction responsible for incident. Either internal, like Police, Transit, and Housing; or external, like Correction, Port Authority, etc. |
BORO_NM | The name of the borough in which the incident occurred |
ADDR_PCT_CD | The precinct in which the incident occurred |
LOC_OF_OCCUR_DESC | Specific location of occurrence in or around the premises; inside, opposite of, front of, rear of |
PREM_TYP_DESC | Specific description of premises; grocery store, residence, street, etc. |
PARKS_NM | Name of NYC park, playground or greenspace of occurrence, if applicable (state parks are not included) |
HADEVELOPT | Name of NYCHA housing development of occurrence, if applicable |
X_COORD_CD | X-coordinate for New York State Plane Coordinate System, Long Island Zone, NAD 83, units feet (FIPS 3104) |
Y_COORD_CD | Y-coordinate for New York State Plane Coordinate System, Long Island Zone, NAD 83, units feet (FIPS 3104) |
Latitude | Latitude coordinate for Global Coordinate System, WGS 1984, decimal degrees (EPSG 4326) |
Longitude | Longitude coordinate for Global Coordinate System, WGS 1984, decimal degrees (EPSG 4326) |
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 |
null | null |
null | null |
null | null |
null | null |
null | null |
End of preview.
New York City Crimes
2014-2015 Crimes reported in all 5 boroughs of New York City
Dataset Info
- Source: Kaggle
- Original Size: 50.01 MB
- Kaggle Downloads: 6,812
- Files: 3
Files
Crime_Column_Description.csvNYPD_Complaint_Data_Historic.csvPopulation_by_Borough_NYC.csv
Mirrored from Kaggle
- Downloads last month
- 25