Displaying dataframe on Tkinter GUI
up vote
0
down vote
favorite
I am developing a GUI using Tkinter. I need to display a dataframe on the graphics window. But the text on the window has some alignment problem.
I have tried using pd.set_option, but it does not seem to work.
I am not able to upload an image, so here's a shortened version of the code and data.
geom=pd.DataFrame({"r":np.arange(0.1,0.4,0.1),"c":[0.029,0.067,0.06656,0.06272],
"twist":[23,19,12.35,9.96]})
ttk.Label(GeomFrame,text=geom).grid(column=1,row=1,sticky=(W))
Here inp.geom is the dataframe that I want to print. The actual dataframe is much bigger and read from an excel file. I am just posting a small part of it, but I hope the problem in display is evident from this.
dataframe tkinter display
add a comment |
up vote
0
down vote
favorite
I am developing a GUI using Tkinter. I need to display a dataframe on the graphics window. But the text on the window has some alignment problem.
I have tried using pd.set_option, but it does not seem to work.
I am not able to upload an image, so here's a shortened version of the code and data.
geom=pd.DataFrame({"r":np.arange(0.1,0.4,0.1),"c":[0.029,0.067,0.06656,0.06272],
"twist":[23,19,12.35,9.96]})
ttk.Label(GeomFrame,text=geom).grid(column=1,row=1,sticky=(W))
Here inp.geom is the dataframe that I want to print. The actual dataframe is much bigger and read from an excel file. I am just posting a small part of it, but I hope the problem in display is evident from this.
dataframe tkinter display
If we can't see your code, it will be impossible for us to diagnose the problem. Please create a Minimal, Complete, and Verifiable example tailored to this question.
– Bryan Oakley
Nov 8 at 16:10
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I am developing a GUI using Tkinter. I need to display a dataframe on the graphics window. But the text on the window has some alignment problem.
I have tried using pd.set_option, but it does not seem to work.
I am not able to upload an image, so here's a shortened version of the code and data.
geom=pd.DataFrame({"r":np.arange(0.1,0.4,0.1),"c":[0.029,0.067,0.06656,0.06272],
"twist":[23,19,12.35,9.96]})
ttk.Label(GeomFrame,text=geom).grid(column=1,row=1,sticky=(W))
Here inp.geom is the dataframe that I want to print. The actual dataframe is much bigger and read from an excel file. I am just posting a small part of it, but I hope the problem in display is evident from this.
dataframe tkinter display
I am developing a GUI using Tkinter. I need to display a dataframe on the graphics window. But the text on the window has some alignment problem.
I have tried using pd.set_option, but it does not seem to work.
I am not able to upload an image, so here's a shortened version of the code and data.
geom=pd.DataFrame({"r":np.arange(0.1,0.4,0.1),"c":[0.029,0.067,0.06656,0.06272],
"twist":[23,19,12.35,9.96]})
ttk.Label(GeomFrame,text=geom).grid(column=1,row=1,sticky=(W))
Here inp.geom is the dataframe that I want to print. The actual dataframe is much bigger and read from an excel file. I am just posting a small part of it, but I hope the problem in display is evident from this.
dataframe tkinter display
dataframe tkinter display
edited Nov 9 at 11:24
asked Nov 8 at 13:30
jpt
62
62
If we can't see your code, it will be impossible for us to diagnose the problem. Please create a Minimal, Complete, and Verifiable example tailored to this question.
– Bryan Oakley
Nov 8 at 16:10
add a comment |
If we can't see your code, it will be impossible for us to diagnose the problem. Please create a Minimal, Complete, and Verifiable example tailored to this question.
– Bryan Oakley
Nov 8 at 16:10
If we can't see your code, it will be impossible for us to diagnose the problem. Please create a Minimal, Complete, and Verifiable example tailored to this question.
– Bryan Oakley
Nov 8 at 16:10
If we can't see your code, it will be impossible for us to diagnose the problem. Please create a Minimal, Complete, and Verifiable example tailored to this question.
– Bryan Oakley
Nov 8 at 16:10
add a comment |
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53208781%2fdisplaying-dataframe-on-tkinter-gui%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
If we can't see your code, it will be impossible for us to diagnose the problem. Please create a Minimal, Complete, and Verifiable example tailored to this question.
– Bryan Oakley
Nov 8 at 16:10