Showing posts with the label apache-spark-ml

[FIXED] pyspark - Convert sparse vector obtained after one hot encoding into columns

Issue I am using apache Spark ML lib to handle categorical features using one hot encoding. After w…

[FIXED] 'OneHotEncoder' object has no attribute 'transform'

Issue I am using Spark v3.0.0. My dataframe is: indexer.show() +------+--------+-----+ |row_id| …