operators.truncate.TruncatePreprocessor
- class operators.truncate.TruncatePreprocessor(field, target_field=None, length=5000, by='words')
Truncates a column by given amount.
Truncates the given column (with string values) and writes result to the target field.
Parameters
Parameters
Name Type Default Info field strThe field you want to truncate. target_field strThe output field to write the truncated strings to. length intThe length to truncate to. by strWhether to truncate to <length> ‘words’ or ‘chars’.