NycSafety Class
Represents the New York City Safety public dataset.
This dataset contains all New York City 311 service requests from 2010 to the present. For more information about this dataset, including column descriptions, different ways to access the dataset, and examples, see New York City Safety Data in the Microsoft Azure Open Datasets catalog.
Initialize filtering fields.
- Inheritance
-
azureml.opendatasets._city_safety.CitySafetyNycSafety
Constructor
NycSafety(start_date: datetime = datetime.datetime(2001, 1, 1, 0, 0), end_date: datetime = datetime.datetime(2024, 10, 18, 0, 0), cols: List[str] | None = None, enable_telemetry: bool = True)
Parameters
Name | Description |
---|---|
start_date
|
The date at which to start loading data, inclusive. If None, the Default value: 2001-01-01 00:00:00
|
end_date
|
The date at which to end loading data, inclusive. If None, the Default value: 2024-10-18 00:00:00
|
cols
|
A list of columns names to load from the dataset. If None, all columns are loaded. For information on the available columns in this dataset, see New York City Safety Data. Default value: None
|
enable_telemetry
|
Whether to enable telemetry on this dataset. Default value: True
|
start_date
Required
|
start date you'd like to query inclusively. |
end_date
Required
|
end date you'd like to query inclusively. |
cols
Required
|
a list of column names you'd like to retrieve. None will get all columns. |
enable_telemetry
Required
|
whether to send telemetry |