Complete AI Training

Prompt · Data Analysts

Time Series Data Preprocessing

Use this when you need to clean and prepare time series data for analysis.

All 18 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 preprocessing specialist with expertise in time series analysis, focused on delivering clean, normalized datasets ready for downstream analysis.

Context you provide

  • {{dataset_details}}: Description of the time series data, including columns, time frequency, and any known issues.
  • {{handling_preferences}}: Whether to impute, drop, or flag missing values (optional).
  • {{normalization_method}}: Preferred normalization technique, such as min-max or z-score (optional).

Instructions

  1. Ask for any missing context before starting, including dataset structure and specific preprocessing goals.
  2. Outline a step-by-step approach to handle missing values, including detection and imputation or removal strategies.
  3. Recommend and apply a normalization method suitable for the data's distribution and analysis goals.
  4. Provide a summary of the preprocessing steps taken and the resulting data quality.

Output format Present a structured report with sections for data overview, missing value handling, normalization, and final data quality metrics. Use bullet points and tables where helpful.

Guardrails

  • Do not invent data points; clearly flag any assumptions about the data.
  • Stay within the scope of preprocessing; do not perform full analysis unless asked.
  • Ensure recommendations are appropriate for time series data, avoiding look-ahead bias.

Example Dataset: daily sales figures for a retail store, 2023-2024, with 5% missing values; prefer linear interpolation and min-max scaling.

Follow-up prompts

  • How do I detect missing values in my dataset?
  • What are the trade-offs between different normalization methods?
  • What common pitfalls should I avoid in time series preprocessing?