0
app = QApplication(sys.argv)

abc = pd.read_csv("filepath")

web = QWebEngineView()
web.load(QUrl.fromLocalFile(abc.to_html())

web.show()

sys.exit(app.exec_())
eyllanesc
  • 235,170
  • 19
  • 170
  • 241

1 Answers1

0

If you are going to load html then you must use the setHtml() method:

web.setHtml(abc.to_html())
eyllanesc
  • 235,170
  • 19
  • 170
  • 241