20 of the best prompts for Gemini for data science, step by step across 4 stages. Works with ChatGPT, Claude, and Gemini.
20 of the best prompts for Gemini for data science, step by step across 4 stages. Works with ChatGPT, Claude, and Gemini.
Published July 4, 2026 · Updated July 15, 2026
Accelerate every stage of the data science workflow from exploration to modeling to communicating results. This guide walks you through every stage of Gemini for Data Science, from Data Exploration and Cleaning all the way through Google Cloud and BigQuery Integration, with a curated, copy-ready prompt at each step. Each stage targets a specific phase of the process so you always know exactly what to ask and what output to expect. Works with ChatGPT, Claude, and Gemini and any other major AI tool.
Gemini helps you understand, clean, and prepare datasets for analysis.
Exploratory analysis
I have a dataset with these columns and data types: [DESCRIBE OR PASTE SAMPLE]. What exploratory analysis should I run first, and write the Python / pandas code to do it?
Dataset has quality
This dataset has quality issues: [DESCRIBE ISSUES, E.G., MISSING VALUES, OUTLIERS, INCONSISTENT FORMATS]. Write the pandas code to identify and handle each issue, explaining the trade-offs of each approach.
Write data profiling script
Write a data profiling script for this dataset: [DESCRIBE STRUCTURE]. I want to see: null counts, value distributions, unique counts, and basic statistics for each column.
Merge these two datasets:
I need to merge these two datasets: [DESCRIBE DATASET A AND DATASET B]. The join key is [KEY]. What are the potential join issues (duplicates, nulls, type mismatches) and how should I handle them?
Dataset has features
My dataset has [N] features. I need to select the most relevant features for predicting [TARGET]. What feature selection approaches should I use, and write the code for each.
Gemini guides modeling decisions and writes the code for scikit-learn, TensorFlow, and PyTorch workflows.
Predict
I want to predict [TARGET] from [FEATURES]. My data: [DESCRIBE SIZE AND TYPE]. What model should I start with and why? Write the full scikit-learn pipeline including preprocessing.
Which should I
Explain the trade-offs between [MODEL A] and [MODEL B] for my use case: [DESCRIBE PROBLEM AND DATA]. Which should I use and what hyperparameters matter most?
Write Python code
Write Python code to tune the hyperparameters of [MODEL] using [GRIDSEARCHCV / RANDOMIZEDSEARCHCV / OPTUNA]. Metric: [METRIC]. Include cross-validation and a summary of the best parameters.
Model has
My model has [DESCRIBE ISSUE: HIGH VARIANCE / LOW ACCURACY / SLOW INFERENCE / CLASS IMBALANCE]. Diagnose the likely cause and suggest the highest-impact fixes.
Write model evaluation function
Write a model evaluation function that computes [METRICS: ACCURACY, F1, AUC-ROC, RMSE, ETC.] for [CLASSIFICATION / REGRESSION] and produces a clean summary report with visualizations.
Gemini writes visualization code and helps translate technical findings into clear business narratives.
Write Python code
Write Python code to visualize [DESCRIBE WHAT YOU WANT TO SHOW] using [MATPLOTLIB / SEABORN / PLOTLY]. The audience is [TECHNICAL / NON-TECHNICAL]. Make it clear and presentation-ready.
Analysis result:
I have this analysis result: [DESCRIBE FINDING]. Write a plain-language explanation for a business stakeholder who is not technical. Focus on the so-what, not the methodology.
Create data dashboard
Create a data dashboard in [GOOGLE LOOKER STUDIO / COLAB / PLOTLY DASH] for [DESCRIBE WHAT TO TRACK]. Include: key metrics, trend charts, and filter controls.
Write data story
Write a data story for this dataset: [DESCRIBE OR PASTE SAMPLE FINDINGS]. Structure it as: the question, the data, the key insight, and the recommendation.
Generate Jupyter notebook structure
Generate a Jupyter notebook structure for a data science project on [TOPIC]. Include: section headers, markdown cells explaining each stage, and placeholder code cells.
Gemini bridges local Python data science with Google Cloud data infrastructure.
Write Python code
Write Python code to query BigQuery and load the results into a pandas DataFrame for analysis. Query: [DESCRIBE WHAT DATA YOU NEED]. Handle authentication and pagination.
Large dataset
I have a large dataset in Google Cloud Storage. Write Python code to load it efficiently for analysis: [DESCRIBE FORMAT, E.G., PARQUET / CSV / JSON]. Handle memory constraints.
Data science environment
Set up a data science environment on Google Colab for [PROJECT TYPE]. What libraries should I install, how should I authenticate to Google Cloud, and how should I structure my notebooks?
Write Python code
Write Python code to train a model and deploy it to Vertex AI. Model: [DESCRIBE]. Input/output schema: [DESCRIBE]. Include: training script, model export, and deployment endpoint creation.
Use BigQuery ML
I want to use BigQuery ML to [DESCRIBE ML TASK]. Write the BigQuery SQL to create, train, and evaluate the model. Explain when to use BQML vs. Python-based modeling.
Yes. Gemini is built into Google Colab, allowing you to generate code cells, explain outputs, debug errors, and get suggestions directly in the notebook interface. It is one of the tightest AI-coding integrations available for data science.
Yes. Describe your problem type, data size, features, and performance requirements and Gemini recommends appropriate models with reasoning. It explains the trade-offs between options rather than just naming the most common choice.
For local analysis, Gemini helps you write memory-efficient pandas and numpy code. For very large data, it guides BigQuery, Spark, and Google Cloud Dataflow approaches that process data where it lives rather than pulling it locally.
Yes. Paste your model code, training results, or SHAP values and Gemini explains what the model learned, which features matter most, and what the results mean. This is especially useful for communicating model behavior to non-technical stakeholders.
Gemini knows the full Python data science stack: pandas, NumPy, scikit-learn, TensorFlow, PyTorch, XGBoost, LightGBM, matplotlib, seaborn, plotly, statsmodels, and Google-specific libraries including BigQuery ML, Vertex AI SDK, and google-cloud-bigquery.
AI Prompts for Gemini for Python
Write cleaner Python faster, fix errors with clear explanations, and build better software with Gemini as your Python coding partner..
See promptsAI Prompts for Gemini for Data Analysis
Gemini connects to Google Sheets, BigQuery, and Looker Studio natively, making it one of the most practical AI tools for data work within the Google ecosystem.
See promptsAI Prompts for Gemini for SQL
Write, debug, and optimize SQL queries faster using Gemini for database work across PostgreSQL, MySQL, and BigQuery..
See prompts