Using pandas with PyQt by sjev · Pull Request #435 · pandas-dev/pandas (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation4 Commits5 Checks0 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

@sjev

I've written a simple data model for showing pandas DataFrame in a QDataTable. It is all in the sandbox, qtpandas.py. This file can be run stand-alone as an example.

@lbeltrame

Also, why instead of a setter use an instance attribute?

def __init__(self, df, parent=None):
    super(DataFrameModel, self).__init__(parent)
    self.dataframe = df

@wesm

Do you want me to merge this or are you planning to do some more work here?

@sjev

@wesm

I make these merges and send you instructions to fix up your git branch. It's not so hard =P