Quantcast
Channel: Pentaho Community Forums
Viewing all articles
Browse latest Browse all 16689

splitting csv-field to new boolean-fields -- creating dummy_vars

$
0
0
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?

Viewing all articles
Browse latest Browse all 16689

Trending Articles