Búsqueda de sitios web

palantir foundry - Función de Typescript: Palantirfoundry - eliminar un valor en un dataframe


Me gustaría obtener ayuda con una función de TypeScript sobre un objeto de ontología. Me gustaría escribir un programa en TypeScript que tome un dataframe como entrada. Cuando elimino un valor de una fila en una columna, los valores en otras columnas cambian a nulo.

Por ejemplo, este es un dataframe

IDnivelresponsabledescripción
A12nivel2NG34JeanHoja
B15nivel5NG90ElisAullar
C67nivel4NG64MatireAbrazadera
H65nivel3NG45LouisCúbico
J90nivel0NG08Marie¡Puaj!
For the ID = B15, I would like to remove its level ie "level5" hence the values of "responsible" and "description" egal to "Null"

For the ID = H65, I would like to remove its level ie "level3" hence the values of "responsible" and "description" egal to "Null"

Aquí está el dataframe al final

IDnivelresponsabledescripción
A12nivel2NG34JeanHoja
B15Sin valornulonulo
C67nivel4NG64MatireAbrazadera
H65Sin valornulonulo
J90nivel0NG08Marie¡Puaj!
@OntologyEditFunction()
    public async deletevaluetable(
        objectpart: ObjectPartsNew[],
        ID?: string,
        level?: string,
        responsible?: string,
        description?: string,
    ): Promise<void> {
        function deletevaluetable()  {
            var manual;
            for (var i = 0; i < objectpart.length; i++) {
                manual=objectpart[i];
                var updates = 0;
                const properties_dict: manualUpdate = {
                    "manual": ID, 
                };
                .....
            }   
        }
    }