BostonSafety Class

Represents the Boston Safety public dataset.

This dataset contains 311 calls reported to the city of Boston. For more information about this dataset, including column descriptions, different ways to access the dataset, and examples, see Boston Safety Data in the Microsoft Azure Open Datasets catalog.

Initialize filtering fields.

Inheritance
azureml.opendatasets._city_safety.CitySafety
BostonSafety

Constructor

BostonSafety(start_date: datetime = datetime.datetime(2001, 1, 1, 0, 0), end_date: datetime = datetime.datetime(2024, 2, 7, 0, 0), cols: List[str] | None = None, enable_telemetry: bool = True)

Parameters

start_date
datetime
default value: 2001-01-01 00:00:00

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

end_date
datetime
default value: 2024-02-07 00:00:00

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

cols
list[str]
default value: None

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 Boston Safety Data.

enable_telemetry
bool
default value: True

Whether to enable telemetry on this dataset.

start_date
datetime
Required

start date you'd like to query inclusively.

end_date
datetime
Required

end date you'd like to query inclusively.

cols
Optional[List[str]]
Required

a list of column names you'd like to retrieve. None will get all columns.

enable_telemetry
bool
Required

whether to send telemetry