Back to guides

Survey CSV cleaning for ratings, comments, and segments

Survey exports mix structured values such as rating and segment with open-text comments. Clean the structured fields without damaging the language respondents entered.

Protect open-text answers

Comments often contain commas, line breaks, quotes, and extra spaces. Those values should remain readable and correctly quoted after cleanup.

Normalize ratings and segments

Rating fields should be numeric or blank. Segment fields should use one consistent label per group, otherwise charts will split the same audience into multiple categories.

Handle duplicate submissions

Duplicate rows can be caused by exports, retries, or respondents submitting twice. Decide whether the correct key is respondent_id, email, session_id, or a combination of respondent and submitted_at.

Recommended local workflow

  1. Load the survey sample on the tool page or paste a survey export.
  2. Keep quote handling, header normalization, null cleanup, and duplicate removal enabled.
  3. Inspect changed cells in comment, rating, segment, and submitted_at columns.
  4. Download the cleaned CSV and run a row-count check before analysis.