Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug when load dataframe in pandastable #247

Open
Adarsh-365 opened this issue Oct 5, 2023 · 1 comment
Open

bug when load dataframe in pandastable #247

Adarsh-365 opened this issue Oct 5, 2023 · 1 comment

Comments

@Adarsh-365
Copy link

Adarsh-365 commented Oct 5, 2023

here is code
```
from tkinter import *
import pandas as pd
from pandastable import Table, TableModel, config
import Load_Dataframe
import numpy as np
class TestApp(Frame):
"""Basic test frame for the table"""
def init(self, parent=None):
self.parent = parent
Frame.init(self)
self.main = self.master
self.main.geometry('600x400+200+100')
self.main.title('Table app')
f = Frame(self.main)
f.pack(fill=BOTH,expand=1)
df = TableModel.getSampleData()
df = pd.DataFrame(
{
"A": 1.0,
"B": pd.Timestamp("20130102"),
"C": pd.Series(1, index=list(range(4)), dtype="float32"),
"D": np.array([3] * 4, dtype="int32"),
"E": pd.Categorical(["test", "train", "test", "train"]),
"F": "foo",
}
)

        self.table = pt = Table(f, dataframe=df,
                                showtoolbar=False, showstatusbar=False)
        pt.show()
      
        pt.show()
        return

          app = TestApp()
          #launch the app
          app.mainloop()

![Screenshot (68)](https://github.com/dmnfarrell/pandastable/assets/102159256/e5271101-7d6b-48f8-8eed-e630d46b6a45)
![Screenshot (67)](https://github.com/dmnfarrell/pandastable/assets/102159256/8d8c617f-692d-4b2d-9974-719a683eb4e4)
can any one tell me why this happening when i traverse data use arrow key from bottom to top
@dmnfarrell
Copy link
Owner

It's a rendering bug that was never fixed. It shouldn't otherwise alter the functionality of the table.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants