Hi,
I have 3 data frame with not same items inside labled values i mean :

data frame 1
collabled
  a
   b
   c


dataframe2

collabled
    a
     w
      z


when i enode the first data fram i get

collabled     a    b      c
    a            1     0     0
    b             0    1     0
    c             0    0     1

df2
collabled     a    w      z
    a            1     0     0
    w             0    1     0
    z             0    0     1




i want add
b and c with values 0 to df1
w and z with values 0 to df2

but onehotencoder inside spark use sparsvector.

How i can add columns like expected without breaking normal behivor of
onehotenoder ?

Reply via email to