Hi @malik
Take a look at the different Python nodes available in KNIME Nodepit.
Maybe you have to install the Python nodes first: File -> Install KNIME Extensions.
KNIME uses your local Python configuration. Via File -> Preferences -> Python you have to add the path to your Python executable.
The data in the Python node is treated as Pandas dataframe. From there you can coding Python e.g. scikit-learn or whatever you like.
gr. Hans