a2rl.sample_dataset_path#

a2rl.sample_dataset_path(dataset_name)[source]#

Resolve the path to the sample dataset.

Parameters:

dataset_name (str) – Name of sample dataset.

Return type:

Path

Returns:

Path to the directory of dataset_name.

Examples

>>> import pandas as pd
>>> import a2rl as wi
>>> p = wi.sample_dataset_path('chiller')
>>> p
PosixPath('.../a2rl/dataset/chiller')

>>> df = wi.read_csv_dataset(p).trim()
>>> with pd.option_context('display.max_columns', 2):
...     print(df.head())
   condenser_inlet_temp  ...  system_power_consumption
0                  29.5  ...                     756.4
1                  30.2  ...                     959.3
2                  29.3  ...                     586.1
3                  28.5  ...                    1178.5
4                  30.3  ...                     880.9

[5 rows x 4 columns]

>>> df.shape
(9153, 4)