fetch_pedestrian_counts¶
yohou.datasets.fetch_pedestrian_counts(*, n_series=20, data_home=None, download_if_missing=True, n_retries=3, delay=1.0)
¶
Fetch the Melbourne Pedestrian Counts dataset from Monash/Zenodo.
Hourly time series of pedestrian counts captured from sensors in Melbourne city from May 2009 to April 2020. The full dataset contains 66 sensors; by default only the first 20 are loaded.
Parameters ¶
| Name | Type | Description | Default |
|---|---|---|---|
n_series
|
int or None
|
Maximum number of sensor series to include. |
20
|
data_home
|
str, PathLike, or None
|
Specify another download and cache folder for the datasets.
By default all yohou data is stored in |
None
|
download_if_missing
|
bool
|
If |
True
|
n_retries
|
int
|
Number of retries when HTTP errors are encountered. |
3
|
delay
|
float
|
Number of seconds between retries. |
1.0
|
Returns ¶
| Type | Description |
|---|---|
Bunch
|
Dictionary-like object with the following attributes: frame : pl.DataFrame
DataFrame with |
See Also ¶
fetch_electricity_demand: Half-hourly electricity demand series.fetch_kdd_cup: Hourly air quality series.get_data_home: Return the path of the data directory.
References ¶
- Godahewa, R., Bergmeir, C., Webb, G. I., Hyndman, R. J., & Montero-Manso, P. (2021). "Monash Time Series Forecasting Archive." Neural Information Processing Systems Track on Datasets and Benchmarks. https://doi.org/10.5281/zenodo.4656626
Examples ¶
>>> from yohou.datasets import fetch_pedestrian_counts
>>> bunch = fetch_pedestrian_counts()
>>> bunch.frame.columns[:2]
['time', 'T1__count']
Source Code ¶
Source code in src/yohou/datasets/_fetchers.py
665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 | |