Skip to content

Commit 1e563e5

Browse files
committed
updated docs
1 parent 4ac6d16 commit 1e563e5

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

src/sempy_labs/report/_reportwrapper.py

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,25 @@
2424

2525

2626
class ReportWrapper:
27+
"""
28+
Connects to a Power BI report and retrieves its definition.
29+
30+
The ReportWrapper and all functions which depend on it require the report to be in the `PBIR <https://powerbi.microsoft.com/blog/power-bi-enhanced-report-format-pbir-in-power-bi-desktop-developer-mode-preview>`_ format.
31+
32+
Parameters
33+
----------
34+
report : str
35+
The name of the report.
36+
workspace : str
37+
The name of the workspace in which the report resides.
38+
Defaults to None which resolves to the workspace of the attached lakehouse
39+
or if no lakehouse attached, resolves to the workspace of the notebook.
40+
41+
Returns
42+
-------
43+
pandas.DataFrame
44+
A pandas dataframe containing the report metadata definition files.
45+
"""
2746

2847
_report: str
2948
_workspace: str
@@ -34,6 +53,25 @@ def __init__(
3453
report: str,
3554
workspace: Optional[str] = None,
3655
):
56+
"""
57+
Connects to a Power BI report and retrieves its definition.
58+
59+
The ReportWrapper and all functions which depend on it require the report to be in the `PBIR <https://powerbi.microsoft.com/blog/power-bi-enhanced-report-format-pbir-in-power-bi-desktop-developer-mode-preview>`_ format.
60+
61+
Parameters
62+
----------
63+
report : str
64+
The name of the report.
65+
workspace : str
66+
The name of the workspace in which the report resides.
67+
Defaults to None which resolves to the workspace of the attached lakehouse
68+
or if no lakehouse attached, resolves to the workspace of the notebook.
69+
70+
Returns
71+
-------
72+
pandas.DataFrame
73+
A pandas dataframe containing the report metadata definition files.
74+
"""
3775

3876
from sempy_labs.report import get_report_definition
3977

0 commit comments

Comments
 (0)