ChicagoSafety Class

Represents the Chicago Safety public dataset.

This dataset contains 311 service requests from the city of Chicago, including historical sanitation code complaints, pot holes reported, and street light issues. For more information about this dataset, including column descriptions, different ways to access the dataset, and examples, see Chicago Safety Data in the Microsoft Azure Open Datasets catalog.

Initialize filtering fields.

Inheritance
azureml.opendatasets._city_safety.CitySafety
ChicagoSafety

Constructor

ChicagoSafety(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_start_date is used.

Default value: 2001-01-01 00:00:00
end_date

The date at which to end loading data, inclusive. If None, the default_end_date is used.

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 Chicago 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

Attributes

default_end_date

default_end_date = datetime.datetime(2024, 10, 18, 12, 28, 53, 586807)

default_start_date

default_start_date = datetime.datetime(2000, 1, 1, 0, 0)