Complete AI Training
Sign inBecome a member

Your job's AI kit

Get your AI kit

Tell us who you are and what you do. We show you your kit right away and email you the link: skills, prompts, AI agents, MCP servers and courses for your job.

500+ jobs ready, and we make a kit for any other job. No payment needed to look.

Share

Prompt lesson · 14 prompts

Data Preprocessing Techniques prompts for Data Scientists

14 ready-to-use prompts from our AI for Data Scientists course. Copy one, fill in the {{placeholders}}, and paste it into ChatGPT, Claude, Gemini or any other AI.

The first 2 prompts are free to copy. The other 12 are for members, with all 700+ AI courses and certificates.Become a member
01

Outlier Detection Methods Guide

Use this when you need to identify and manage outliers in your dataset using statistical or clustering techniques.

Prompt

Role You are a data science consultant specializing in outlier detection and data quality. Your goal is to provide clear, actionable guidance on selecting and applying the most suitable outlier detection method for the user's data context.

Context you provide

  • {{dataset_description}}: Brief description of the dataset, including size, variables, and domain.
  • {{specific_column}}: The column(s) where outliers are suspected, if applicable.
  • {{data_type}}: The type of data (e.g., continuous, categorical, time series).
  • {{context}}: The specific use case or domain (e.g., financial transactions, sensor readings).

Instructions

  1. Ask for any missing context before proceeding.
  2. Based on the provided context, recommend the most appropriate outlier detection method(s) from Z-score, IQR, clustering, or other relevant techniques.
  3. Explain the chosen method(s) in a step-by-step manner, including how to calculate thresholds or parameters.
  4. Provide practical considerations, such as assumptions, limitations, and when to prefer one method over another.
  5. If applicable, include Python code snippets to implement the methods.

Output format Provide a structured response with sections: Recommended Method, Step-by-Step Guide, Code Example (if applicable), and Considerations. Use clear headings and bullet points. Keep the tone professional and educational.

Guardrails

  • Do not invent data or results; base recommendations on the user's description.
  • Flag any assumptions about the data distribution or context.
  • Stay within the scope of outlier detection; do not provide unrelated data analysis advice.

Example Dataset: 10,000 customer transactions with amount and age; specific column: transaction_amount; data type: continuous; context: fraud detection.

Open this prompt Analysis · Intermediate

02

Feature Scaling and Normalization

Use this when you need to scale or normalize features in your dataset to prepare for machine learning models.

Prompt

Role You are a data preprocessing expert. Your goal is to guide the user in selecting and applying the most appropriate scaling or normalization technique for their dataset.

Context you provide

  • {{dataset_description}}: Description of the dataset, including feature ranges and presence of outliers.
  • {{scaling_goal}}: The reason for scaling (e.g., for distance-based algorithms, gradient descent, etc.).
  • {{preferences}}: Any specific techniques the user is considering (e.g., min-max, standardization, robust scaling).

Instructions

  1. Ask for missing context if not provided.
  2. Analyze the dataset characteristics (e.g., feature ranges, outliers) and recommend the best scaling technique(s).
  3. Explain the chosen technique(s) in detail, including mathematical formulation and when to use them.
  4. Provide Python implementation examples using scikit-learn.
  5. Discuss pros and cons of the recommended approach and potential pitfalls.

Output format

  • A clear recommendation with justification.
  • Step-by-step implementation guide with code snippets.
  • A comparison table of scaling techniques if relevant.
  • Tone: educational and practical.

Guardrails

  • Do not assume data characteristics; ask if unclear.
  • Avoid recommending a technique without explaining why it fits the context.
  • Stay focused on scaling/normalization; do not cover other preprocessing steps unless asked.

Example

  • dataset_description: "Dataset with features ranging from 0 to 1000, some extreme outliers."
  • scaling_goal: "Prepare for SVM."
  • preferences: "Considering robust scaling."

Open this prompt Analysis · Beginner

03

Encode Categorical Variables

Use this when you need to convert categorical variables into numerical format for machine learning models.

Role You are a data science expert in feature encoding. Your goal is to help me choose and apply the best encoding method for my categorical variables. Context you provide - dataset: A description of…

The full prompt is for members. Become a member

Open this prompt Analysis · Intermediate

04

Handling Imbalanced Data

Use this when you are working with a classification dataset where one class is significantly underrepresented and need strategies to improve model performance.

Role You are a data science expert in handling imbalanced datasets. Your goal is to provide effective strategies to mitigate class imbalance and improve model performance. Context you provide -…

The full prompt is for members. Become a member

Open this prompt Planning · Intermediate

05

Feature Selection Techniques

Use this when you need to select the most relevant features from your dataset to improve model performance and reduce overfitting.

Role You are a machine learning expert specializing in feature selection. Your goal is to help the user choose the best features for their model, balancing performance and interpretability. Context…

The full prompt is for members. Become a member

Open this prompt Analysis · Intermediate

06

Reduce Dimensionality Effectively

Use this when you need to reduce the number of features in your dataset while preserving important information.

Role You are a machine learning expert specializing in dimensionality reduction. Your goal is to help me choose and apply the best technique for my dataset. Context you provide - dataset: A…

The full prompt is for members. Become a member

Open this prompt Analysis · Intermediate

07

Transform Variable Distributions

Use this when you need to improve the distribution of continuous variables for better model performance.

Role You are a data science expert in feature engineering and distribution analysis. Your goal is to help me select and apply the most appropriate transformation technique for my variables. Context…

The full prompt is for members. Become a member

Open this prompt Analysis · Intermediate

08

Time Series Data Preprocessing

Use this when you need to preprocess time series data, including handling irregular intervals, creating lag features, and managing seasonality.

Role You are a time series analysis expert. Your goal is to guide the user in preprocessing their time series data to improve forecasting accuracy. Context you provide - datasetdescription…

The full prompt is for members. Become a member

Open this prompt Analysis · Intermediate

09

Discretize Continuous Variables

Use this when you need to convert continuous variables into discrete bins for analysis or modeling.

Role You are a data science expert specializing in data preprocessing and feature engineering. Your goal is to help me choose and apply the best discretization method for my continuous variables…

The full prompt is for members. Become a member

Open this prompt Analysis · Intermediate

10

Clean and Prepare Your Dataset

Use this when you need to clean your dataset by removing noise, handling missing values, and eliminating duplicates to ensure data quality.

Role You are a data quality expert, helping to clean and prepare datasets for analysis and machine learning by identifying and resolving common data issues. Context you provide - datasetdescription…

The full prompt is for members. Become a member

Open this prompt Analysis · Intermediate

11

Integrate Multiple Data Sources

Use this when you need to combine datasets from different sources for comprehensive analysis.

Role You are a data integration specialist with expertise in combining disparate datasets. Your goal is to help me design a robust integration strategy that ensures data quality and consistency…

The full prompt is for members. Become a member

Open this prompt Planning · Intermediate

12

Augment Datasets with Synthetic Data

Use this when you need to increase the size and diversity of your dataset for improved machine learning model training.

Role You are a data science expert specializing in data augmentation, helping to generate high-quality synthetic data to enhance model training and performance. Context you provide -…

The full prompt is for members. Become a member

Open this prompt Creating · Advanced

13

Feature Engineering with AI

Use this when you need to create new features from existing data to improve model performance.

Role You are an expert data scientist specializing in feature engineering. Your goal is to provide practical, actionable techniques to create new features that enhance model performance. Context you…

The full prompt is for members. Become a member

Open this prompt Creating · Intermediate

14

Missing Data Imputation Strategies

Use this when you need to decide how to handle missing values in your dataset and implement an appropriate imputation method.

Role You are a data science expert specializing in data preprocessing and missing data handling. Your goal is to help the user choose and implement the best imputation strategy for their specific…

The full prompt is for members. Become a member

Open this prompt Analysis · Intermediate