Hello,
I am facing the problem transforming a csv-field with a number (~30) of unordered attributes into new boolean-fields representing these attributes.
Source:
id|csv_field
1|has_this, has_that, has_alsothat
2|has_that, has_this, has_thisalso
3|has_that,has_thisalso
Target:
id|has_this|has_that|has_thisalso|has_alsothat
1|1|1|0|1
2|1|1|1|0
3|0|1|1|0
Any hints or ideas someone?
I am facing the problem transforming a csv-field with a number (~30) of unordered attributes into new boolean-fields representing these attributes.
Source:
id|csv_field
1|has_this, has_that, has_alsothat
2|has_that, has_this, has_thisalso
3|has_that,has_thisalso
Target:
id|has_this|has_that|has_thisalso|has_alsothat
1|1|1|0|1
2|1|1|1|0
3|0|1|1|0
Any hints or ideas someone?