【问题标题】:How to save a file into my system or connect it to PowerBI directly如何将文件保存到我的系统或直接连接到 PowerBI
【发布时间】:2021-04-22 09:43:14
【问题描述】:

所以我在 Chrome 上的 Jupyter Notebook 中读取了一个 CSV 文件(使用 pd.read_csv())

它由大约 86,000 行和大约 5 列组成。它是数字和字符串数据的混合体。我清理/操作它添加一列并删除空值。

我现在希望在我的 PowerBI 中连接这些数据以将其可视化。

我可以将其保存为我的计算机中的 JSON 文件,然后将其上传到 powerBI 中吗?

有没有办法将所有内容直接转储到 PowerBI 报告中?

我有什么选择?

【问题讨论】:

  • 您的文件是 CSV 还是 JSON?文件/数据是本地存在于您的机器上还是存在于网站上?如果您可以分享一些示例数据和您尝试过的内容,会更容易提供帮助。

标签: python powerbi


【解决方案1】:

您可以在 PowerBI webapp 中复制和粘贴报表内容

一旦你的报告准备好了,保存它,你可以通过安装 powerbiclient 库使用 jupyter notebook book 访问 Power BI 报告

from powerbiclient.authentication import DeviceCodeLoginAuthentication
device_auth = DeviceCodeLoginAuthentication()
token_with_device_code = device_auth.get_access_token()

group_id='ca8b6b59-919d-4f7e-92a2-eab66a7dd536' #your groupid in workspace
report_id='5cb9a453-b3b0-4695-98c9-98ed8f7ad4ba' #your report id in workspace 
report=Report(group_id=group_id,report_id=report_id,auth=device_auth)
report

如果有困难可以参考我在how to connect powerBI report in jupyter notebook的帖子

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-12-24
    • 2020-03-03
    • 2022-12-11
    • 2015-08-20
    • 1970-01-01
    相关资源
    最近更新 更多