更新时间:2023-01-31 11:11:24
我发现了一些可以帮助您的东西:
I found out something which could help you :
Kivy文件
GraphDraw:
<GraphDraw>:
BoxLayout:
Button:
text: "Hello World"
on_press: root.graph()
逻辑
#!/usr/bin/env python
# -*- encoding: utf-8
import datetime
import pandas as pd
from kivy.app import App
from kivy.uix.boxlayout import BoxLayout
import dfgui
import pandas as pd
class Visualisation(App):
pass
class GraphDraw(BoxLayout):
def graph(self):
xls = pd.read_excel('filepath')
#df = pd.DataFrame.xls
dfgui.show(xls)
#print xls
if __name__ == '__main__':
Visualisation().run()
因此,您使用dfgui可以创建熊猫数据框表,而不是使用Kivy. 参见项目dfgui: https://github.com/bluenote10/PandasDataFrameGUI
So you use dfgui which can create pandas dataframe table instead of using Kivy. See the project dfgui : https://github.com/bluenote10/PandasDataFrameGUI
我希望它可以帮助:)