how to use python script?

Hello @quangdatitc
Take a look into this post:

import knime.scripting.io as knio
import pandas as pd
knio.output_tables[0] = knio.Table.from_pandas(
    pd.DataFrame(
        [[1,3,4],[2,61,1]], columns=['column01', 'column02', 'column03']
    )
)

You can also remove input port, and use Python Script node as a source; importing or creating your own data in the code.

BR

2 Likes