I have a dataframe in pyspark which I am doing some one hot encoding .
from pyspark.ml.feature import OneHotEncoderEstimator, StringIndexer, VectorAssembler cat