NycTaxiBase Class

New York Taxi class - this is a parent class that can be inherited.

Initialize filtering fields.

Inheritance
NycTaxiBase

Constructor

NycTaxiBase(start_date: datetime = datetime.datetime(2015, 1, 1, 0, 0), end_date: datetime = datetime.datetime(2024, 10, 18, 0, 0), cols: List[str] | None = None, limit: int | None = -1, enable_telemetry: bool = True)

Parameters

Name Description
start_date

The start date you'd like to query inclusively.

Default value: 2015-01-01 00:00:00
end_date

The 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
limit
int

to_pandas_dataframe() will load only "limit" months of data. -1 means no limit.

Default value: -1
enable_telemetry

Indicates 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(2015, 1, 1, 0, 0)