amphi-ai / amphi-etl

Python-based Low-code ETL for data manipulation and transformation. Generates Python code you can deploy anywhere.

Home Page:https://amphi.ai

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

A formula transformation tool

simonaubertbd opened this issue · comments

Hello,

I would like to have a formula tool with these features (looks very classic):
-modify an existing column or create a new one
-if a new one, ability to set the type (with a dropdown menu as exemple)
-autocompletion
-preview
-ability to disable a formula (not usual but when developing, it's pretty cool)
-language should be python of course

For reference, the Alteryx formula

image

Best regards,

Simon

Hi Simon,
That's a good idea. I do believe this can be done with custom code component but I see why it would help to have one and probably easier for people less comfortable with Python. I probably can have an experimental version of this pretty quick!
Thanks for the suggestion!!

Introduced the formula component in 0.5.7:
image
Multiple modes:
Python Expression
Python Function
Lambda Expression

Haven't done the documentation yet, but will do asap
image

Keeping open because still need to be done:
-color highlighting

  • auto completion

@tgourdel I was thinking : wouldn't it be smarter if I split this issue in two and I create two other ones for color highlighting or autocompletion? That would mean we could close this one.

Sure, that's a good idea. Especially because the highlighting and auto-complete are part of a larger work for all the code inputs (python code, sql inputs).

@tgourdel Done. I think you can close this issue now.