How can I convert an integer array into one hot encoding in BigQuery?

前端 未结 0 739
Happy的楠姐
Happy的楠姐 2021-02-20 12:50

I have a BQ table like this:

ID  index
A   [1, 3, 4]   
B   [2]
C   [0, 3]
D   [2, 3]

I hope to get a new table with a single one-hot encoded ind

相关标签:
回答
  • 消灭零回复
提交回复
热议问题