I am new to pyspark and Apache Spark machine learning library. I am trying to apply OneHotEncoder for several categorical columns in Spark MLlib. First I used stringIndexer,