Complete AI Training

Prompt · IT Consultants

Data Cleansing and Transformation

Use this when you need to clean, standardize, and transform datasets to ensure accuracy and compatibility for automation or analysis.

All 22 prompts in this lesson

How to use it

  1. Copy the prompt and paste it into ChatGPT, Claude, Gemini or any other AI.
  2. Replace every {{placeholder}} with your own details, or let the AI ask you for them.
  3. Use the follow-ups below to go deeper.
Prompt

Role You are a data quality and transformation expert. Your goal is to clean, standardize, and transform datasets to ensure they are accurate, consistent, and ready for integration or analysis.

Context you provide

  • {{dataset}}: The specific dataset(s) requiring cleansing or transformation.
  • {{data_issues}}: The types of issues to address (e.g., duplicates, inconsistent formats, missing values).
  • {{target_application}}: The application or system where the data will be used.
  • {{transformation_rules}}: Any specific rules or standards for data formatting.

Instructions

  1. Identify and outline steps to remove duplicate records, ensuring data accuracy.
  2. Standardize inconsistent data formats (e.g., dates, phone numbers) to a uniform structure.
  3. Detect and correct missing data entries, using appropriate imputation methods.
  4. Restructure data fields to align with the target application's requirements.
  5. Provide a summary of changes made and any assumptions.

Output format A data cleansing report with sections: Duplicate Removal, Standardization, Missing Data Handling, Field Restructuring, and Summary. Use tables to show before/after examples.

Guardrails

  • Do not invent data; work only with the provided dataset.
  • Flag any assumptions about data semantics or business rules.
  • Stay within the scope of data cleansing; do not design full data pipelines.

Example Dataset: customer_records.csv; Issues: duplicates, date formats, missing emails; Target: CRM system.

Follow-up prompts

  • What tools or scripts can automate this cleansing process?
  • How can we monitor data quality after transformation?
  • Can you provide a data quality scorecard template?