-
-
Notifications
You must be signed in to change notification settings - Fork 1k
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
[ENH] OWPivotTable: Data info displayed in the status bar #4472
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4472 +/- ##
=========================================
- Coverage 87.45% 83.2% -4.26%
=========================================
Files 405 268 -137
Lines 73924 54032 -19892
=========================================
- Hits 64649 44955 -19694
+ Misses 9275 9077 -198 |
Orange/widgets/data/owpivot.py
Outdated
@@ -821,6 +829,11 @@ def commit(self): | |||
self.Outputs.pivot_table.send(self.pivot.pivot_table) | |||
self.Outputs.filtered_data.send(self.get_filtered_data()) | |||
|
|||
output = self.pivot.pivot_table |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd rather consider filtered data
here.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Even though pivot table
is the default output of the widget and if a user wants filtered data on the output they have to change connection afterwards?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes.
abb3b11
to
972cc2c
Compare
Orange/widgets/data/owpivot.py
Outdated
@@ -821,6 +829,11 @@ def commit(self): | |||
self.Outputs.pivot_table.send(self.pivot.pivot_table) | |||
self.Outputs.filtered_data.send(self.get_filtered_data()) | |||
|
|||
output = self.get_filtered_data() |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since you are saving the filtered data into a temporary variable, you can do it before self.Outputs.filtered_data.send(self.get_filtered_data())
and use it there as well, instead of creating the data twice.
972cc2c
to
931951f
Compare
Description of changes
Input/output data info displayed in the status bar.
Includes