Remove bracket in a list

Hello !
I have the following reference column :

image

With this formula :

> Liste_Features = $Liste_Features
> 
> # Récupère la liste des UC associées à la liste des features
> UC = [uc.Nom_UC for uc in Liste_Features.UC]
> 
> return UC

Can you help me to remove bracket and comma please ?

I’ve tried a lot of chain manipulation.

NB : This is a column containing a list of lists (many to many between “List Features” and “List UC”).

Thanks ! :heart:

If both $List_Features and UC (within each feature) is a Reference List, then it should work to replace the UC = line with:

UC = [item for uc in Liste_Features.UC for item in uc]

But on the other hand, I believe a simple dot-notation should work in such cases too: $Liste_Features.UC.

The resulting value would be a list of references, and you should change its type to Reference List, and you’ll be able to choose which column it shows for each reference.

1 Like

Thanks @dmitry-grist !

I have extensively revised the structure of my data, so that it can be easily reassembled.

I modeled my structure before redesigning, and it’s a real help

1 Like