ChicagoSafety class

Definition

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.

ChicagoSafety(start_date: datetime.datetime = datetime.datetime(2001, 1, 1, 0, 0), end_date: datetime.datetime = datetime.datetime(2020, 9, 15, 0, 0), cols: typing.Union[typing.List[str], NoneType] = None, enable_telemetry: bool = True)
Inheritance
azureml.opendatasets._city_safety.CitySafety
ChicagoSafety

Parameters

start_data
datetime

The date at which to start loading data, inclusive. If None, the default_start_date is used.

end_data
datetime

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

cols
list[str]

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.

enable_telemetry
bool

Whether to enable telemetry on this dataset.

Attributes

default_end_date

default_end_date = datetime.datetime(2020, 9, 15, 21, 19, 46, 429588)

default_start_date

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