refinery icon indicating copy to clipboard operation
refinery copied to clipboard

Attribute calculation

Open jhoetter opened this issue 3 years ago • 2 comments

Is your feature request related to a problem? Please describe. Similar to pandas, I want to be able to create new attributes given some logic to apply.

Describe the solution you'd like This could look very similar to labeling functions, e.g. as follows:

def cat_attributes(record):
    return str(record["attr1"]) + str(record["attr2"])

to concatenate two textual attributes.

To avoid data clutter, this should also allow users to a) distinguish between original attributes in the data and b) delete attributes

Describe alternatives you've considered Changing the data before you upload it - very static and not dev friendly

Additional context I already implemented a proof-of-concept before our OS release :)

jhoetter avatar Jul 25 '22 11:07 jhoetter

related to issue #14

jhoetter avatar Jul 25 '22 11:07 jhoetter

Mockups

We could integrate a modifiers section in the project settings page, where users see what attribute calculations they have (similar to a pandas DataFrame): project-settings

We could "reuse" what we have for the labeling functions IDE: modifier-ide

jhoetter avatar Aug 01 '22 21:08 jhoetter

implemented in release v1.3.0

FelixKirsch avatar Sep 26 '22 07:09 FelixKirsch