TripEndByDirectionQuery.query#

TripEndByDirectionQuery.query(conn, include_zone_name=False)[source]#

Query NTEM database for Trip End by Direction data using parameters defined on initialisation.

Note the outputs are total time period e.g AM is 3hr 7AM-10AM.

Parameters:
  • conn (Connection) – Connection to the database containing the NTEM data.

  • include_zone_name (bool) – If True, include “zone_name” column in output.

Returns:

  • pd.DataFrame

  • Trip End by Direction data with columns “zone”, “year”, “time_period”,

  • ”mode” (if aggregate_mode was set to False), “purpose” (if aggregate_purpose was set to False)

  • and “value”

Return type:

DataFrame