fetch_pedestrian_counts¶
yohou.datasets._fetchers.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¶
[1] 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¶
Show/Hide source
635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 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 | |