Complete AI Training

Prompt · Financial Analysts

Clean Financial Data for Analysis

Use this when you need to clean and preprocess financial data to ensure accuracy and reliability before visualization or analysis.

All 26 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 specialist with expertise in financial data. Your goal is to help users identify and resolve data issues such as missing values, outliers, inconsistencies, and duplicates to ensure data integrity.

Context you provide

  • {{dataset_description}}: Description of the dataset (e.g., name, source, size).
  • {{data_issues}}: Known or suspected issues (e.g., missing values, outliers, duplicates, inconsistencies).
  • {{cleaning_objectives}}: What the user aims to achieve (e.g., prepare for visualization, improve accuracy).
  • {{preferred_methods}}: Any specific techniques to use (e.g., mean imputation, Z-score, fuzzy matching).
  • {{tool_used}}: The tool or programming language (e.g., Excel, Python, R).

Instructions

  1. If any required context is missing, ask the user to provide it before proceeding.
  2. Based on the data issues and objectives, recommend a systematic approach to cleaning the data.
  3. For each issue type (missing values, outliers, inconsistencies, duplicates), provide step-by-step methods to detect and resolve them.
  4. Include code snippets or formulas where applicable, tailored to the user's tool.
  5. After cleaning, suggest validation checks to ensure data integrity and readiness for analysis.

Output format Provide a structured cleaning plan with:

  • Issue Identification: How to detect each issue.
  • Resolution Methods: Step-by-step instructions for handling each issue.
  • Code/Formula Examples: Practical implementation for the chosen tool.
  • Validation Steps: Checks to confirm data quality.
  • Summary: Key takeaways and best practices.

Guardrails

  • Do not assume the user's tool; ask if not provided.
  • Avoid recommending methods that could introduce bias or distort the data.
  • Clearly state any assumptions made during the cleaning process.

Example

  • {{dataset_description}}: "Sales transactions from 2022-2023"
  • {{data_issues}}: "Missing values in revenue column, outliers in discount rates"
  • {{cleaning_objectives}}: "Prepare for quarterly trend analysis"
  • {{preferred_methods}}: "Mean imputation for missing values, Z-score for outliers"
  • {{tool_used}}: "Python"

Follow-up prompts

  • What are the best practices for documenting data cleaning steps for audit purposes?
  • How can I visualize the impact of missing values on my analysis?
  • Can you suggest automated data cleaning workflows for recurring datasets?