biolab / orange3

🍊 :bar_chart: :bulb: Orange: Interactive data analysis
https://orangedatamining.com
Other
4.7k stars 992 forks source link

Delete/rename features #6787

Closed alaindebecker closed 2 months ago

alaindebecker commented 2 months ago

What's your use case?

I need to change the name of some features and remove some. A frequent question for which I could not find a specialised widget.

My data is a Qty by Date which needed to be grouped by week. Using a Formula I created a week number followed a Group by to get 3 columns: week, Date-Max. value and Qty-Sum. For some reason, I had to revert it to the columns of the original table: Qty, Date.

As I did not found any widget to do this, I used the following workaround:

1) A Formula to create Qty :=Qty-Sum and Date:=Date-Max. value; 2) A Select Columns to remove the three unwanted column.

Two steps (and a lot of reasoning and testing the first time) just to rearrange the column labels.

What's your proposed solution?

I think you could adapt the Formula widget so as to only keep wanted columns.

For example:

Are there any alternative solutions?

Although adpting the Formula (which after all is a widget to specify the features) seems the more intuitive from a user point of view.

janezd commented 2 months ago

We would prefer not to add new widgets for functionality that is easily achieved by others. Orange already has a large number of them, which is - to our experience - scary for many users. Besides, the more widgets we have, the more difficult it is for the user to find the widgets they need. The may even write issues in which they would ask for widgets that already exist. :)

Your suggestion would make the already complex Formula widget even more complicated by adding new tick boxes, while not offering anything that cannot be done with Select Columns (and Edit Domain for renaming columns).