You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/sempy_labs/report/_reportwrapper.py
+38Lines changed: 38 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -24,6 +24,25 @@
24
24
25
25
26
26
classReportWrapper:
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
+
"""
27
46
28
47
_report: str
29
48
_workspace: str
@@ -34,6 +53,25 @@ def __init__(
34
53
report: str,
35
54
workspace: Optional[str] =None,
36
55
):
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.
0 commit comments