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

Export current view #93

Closed
wants to merge 2 commits into from
Closed

Export current view #93

wants to merge 2 commits into from

Conversation

jchuahtacc
Copy link

Added export_view function to QGridWidget to export all data currently being viewed (excluding any rows that have been filtered) to a new dataframe.

Also added export_all which exports all rows, regardless of filtered status.

Both functions take a callback, which will be passed a dataframe with requested rows. Indexes are not preserved.

This is in response to Issue #87 - Feature Request: Return visible rows when grid is filtered

@jchuahtacc jchuahtacc closed this Oct 25, 2016
@fhgd
Copy link
Contributor

fhgd commented Nov 22, 2016

In addition to exporting the filtered rows is it possible to export the selected rows too?

@jchuahtacc
Copy link
Author

There is already a get_selected_rows method that returns an array of indexes of selected rows. I ended up closing this PR and opening a new PR that uses the same type of logic to get indexes of rows after filtering. It's also worth noting that changes made to the data in the grid are reflected in the _df member, though there is no accessor method for it.

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

Successfully merging this pull request may close these issues.

2 participants