Sign up to take part
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
Registered users can ask their own questions, contribute to discussions, and be part of the Community!
特定のカラムに「ABCD1234」「BCDE2345」の様なデータが入っており、左から4文字(「ABCD」「BCDE」)だけ抜き出して新たなカラムを作成したい場合、どのレシピを使えばよいでしょうか?
エクセルで言う所のleft関数のイメージです。
PrepairレシピでFormulaプロセッサを追加し、式としてsubstringまたはsliceを使うことで実現可能です。
substring(対象の列名, 0, 4)
※substringとsliceは同一です。
https://doc.dataiku.com/dss/latest/formula/index.html#array-functions
@Kanzy さん、ありがとうございます。無事できました。