Dataset

reperiods.datasets.load_renewable(length: int = 336) DataFrame[source]

Load renewable energy data from a CSV file.

Parameters:

length (int, optional) – The number of data points (hours) to load. Defaults to 336 (2 weeks).

Returns:

A DataFrame containing renewable hourly capacity factor data with columns ‘Wind’ and ‘PV’.

Return type:

pandas.DataFrame

Example

import reperiods as ps
from reperiods.datasets import load_renewable

# Loading a dataset of hourly capacity factor in a TemporalData object
data = load_renewable(24*7*2)
temporal_data = ps.TemporalData(data)
temporal_data.plot_curves()
../_images/timeseries.png