CitySafety Class

City safety class - this is a parent class that can be inherited by each individual city.

Initialize filtering fields.

Inheritance
CitySafety

Constructor

CitySafety(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

start date you'd like to query inclusively.

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

end date you'd like to query inclusively.

Default value: 2024-10-18 00:00:00
cols

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

Default value: None
enable_telemetry

whether to send telemetry

Default value: True

Attributes

default_end_date

default_end_date = datetime.datetime(2024, 10, 18, 0, 0)

default_start_date

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