Daily-frequency ridership data for various public transport services across the country.
0 viewsΒ·0 downloads
This dataset is derived from anonymous transactional data generated by the ticketing or tap-in/out systems of the various public transport services across the country.
These ridership numbers represent 'headline' totals for major public transport services. There are several nuances to bear in mind:
Ridership numbers for Prasarana-operated services are also published as part of their MyRapid Performance Update; the data here is 100% consistent with the data published there as it is derived from the same source. Our site also features a dashboard on public transport ridership!
Daily-frequency ridership data for various public transport services across the country.
Name in Dataset | Variable | Definition |
---|---|---|
date (Date) | Date | Date in YYYY-MM-DD format |
bus_rkl (Integer) | Rapid Bus (KL) | Number of trips, NOT number of unique individuals |
bus_rkn (Integer) | Rapid Bus (Kuantan) | Number of trips, NOT number of unique individuals |
bus_rpn (Integer) | Rapid Bus (Penang) | Number of trips, NOT number of unique individuals |
rail_lrt_ampang (Integer) | LRT Ampang Line | Number of trips, NOT number of unique individuals |
rail_lrt_kj (Integer) | LRT Kelana Jaya Line | Number of trips, NOT number of unique individuals |
rail_monorail (Integer) | Monorail Line | Number of trips, NOT number of unique individuals |
rail_mrt_kajang (Integer) | MRT Kajang Line | Number of trips, NOT number of unique individuals |
rail_mrt_pjy (Integer) | MRT Putrajaya Line | Number of trips, NOT number of unique individuals |
rail_ets (Integer) | KTMB ETS | Number of trips, NOT number of unique individuals |
rail_intercity (Integer) | KTM Intercity | Number of trips, NOT number of unique individuals |
rail_komuter (Integer) | KTM Komuter | Number of trips, NOT number of unique individuals |
rail_komuter_utara (Integer) | KTM Komuter Utara | Number of trips, NOT number of unique individuals |
rail_tebrau (Integer) | KTM Shuttle Tebrau | Number of trips, NOT number of unique individuals |
12 Nov 2024, 12:00
12 Dec 2024, 12:00
This data is made open under the Creative Commons Attribution 4.0 International License (CC BY 4.0). A copy of the license is available Here.
Full Dataset (CSV)
Recommended for individuals seeking an Excel-friendly format.
0
Full Dataset (Parquet)
Recommended for data scientists seeking to work with data via code.
0
Connect directly to the data with Python.
# If not already installed, do: pip install pandas fastparquet
import pandas as pd
URL_DATA = 'https://storage.data.gov.my/transportation/ridership_headline.parquet'
df = pd.read_parquet(URL_DATA)
if 'date' in df.columns: df['date'] = pd.to_datetime(df['date'])
print(df)
The following code is an example of how to make an API query to retrieve the data catalogue mentioned above. You can use different programming languages by switching the code accordingly. For a complete guide on possible query parameters and syntax, please refer to the official Open API Documentation.
import requests
import pprint
url = "https://api.data.gov.my/data-catalogue?id=ridership_headline&limit=3"
response_json = requests.get(url=url).json()
pprint.pprint(response_json)
Β© 2024 Public Sector Open Data