python - 当我在 powerbi 中运行 python 代码时没有显示数据。使用 pymongo
问题描述
import pymongo
import dns
import pandas as pd
import matplotlib as md
client = pymongo.MongoClient("mongodb+srv://<username>:<password>@cluster0.zev7c.mongodb.net/myFirstDatabase?retryWrites=true&w=majority")
cursor=client.study.college.find({})
for doc in cursor:
print (doc)
我可以在 python 中运行这段代码,我得到了输出。但是当我在 powerbi 中运行相同的代码时,数据没有显示。
解决方案
推荐阅读
- ios - SwiftUI WidgetKit:如何在应用程序终止时打开特定的 viewController
- csv - 位置参数跟随关键字参数
- typescript - TypeScript + React Native SectionList
- kubernetes - 在 Kubernetes 中为单个部署禁用 Crashloop 功能 - 用例:重新加载
- r - 如何在 R 中制作具有对数刻度的密度散点图?
- javascript - 我对网上商店的模态框有疑问
- java - 如何使用 Java8 创建用户审计日志
- python - 如何在 txt 文件中使用 enumerate 函数?
- c++ - 将文件字节写入文件客户端c ++
- javascript - 我的 app.get 只显示第一个项目数组