'How to update tablesaw dataframe from another dataframe

I use python to operate dataframe for a while, how to use java to do update value operation by using tablesaw?

python code :

df1 = pd.DataFrame([['m',1,2],['m',3,4],['n',5,6]],columns=list('ABC'))
df2 = pd.DataFrame([['m',55],['n',44]],columns=list('AB'))
df1 = df1.set_index('A')
df2 = df2.set_index('A')
df1.update(df2)

java code:

Table ta1 =
    Table.create("A1")
        .addColumns(
            StringColumn.create("A", new String[]{"m","m","n"}),
            DoubleColumn.create("B", new Double[]{1.0,2.0,3.0}));
Table ta2 =
    Table.create("A2")
        .addColumns(
            StringColumn.create("A", new String[]{"m","n"}),
            DoubleColumn.create("B", new Double[]{55.0,44.0}));

//do update operation


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source