Skip to content

Commit deb43fc

Browse files
committed
__init__.py add doc for powerplant accessor
1 parent 5a42177 commit deb43fc

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

powerplantmatching/__init__.py

+16
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,22 @@
3333

3434
@pd.api.extensions.register_dataframe_accessor("powerplant")
3535
class PowerPlantAccessor(utils.Accessor):
36+
"""
37+
Accessor object for DataFrames created with powerplantmatching.
38+
This simplifies the access to common functions applicable to dataframes
39+
with powerplant data. Note even though this is a general DataFrame
40+
accessor, the functions will only work for powerplantmatching related
41+
DataFrames.
42+
43+
44+
Examples
45+
--------
46+
47+
import powerplantmatching as pm
48+
entsoe = pm.data.ENTSOE()
49+
entsoe.powerplant.plot_aggregated()
50+
51+
"""
3652
def __init__(self, pandas_obj):
3753
self._obj = pandas_obj
3854

0 commit comments

Comments
 (0)