AI Prompts for Gemini for Data Science

20 of the best prompts for Gemini for data science, step by step across 4 stages. Works with ChatGPT, Claude, and Gemini.

AI Prompts for Gemini for Data Science

20 of the best prompts for Gemini for data science, step by step across 4 stages. Works with ChatGPT, Claude, and Gemini.

Scroll to explore

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.

Data Exploration and Cleaning

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?

Data Exploration and Cleaning

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.

Data Exploration and Cleaning

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.

Data Exploration and Cleaning

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?

Data Exploration and Cleaning

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.

Data Exploration and Cleaning

Analysis and Modeling

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.

Analysis and Modeling

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?

Analysis and Modeling

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.

Analysis and Modeling

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.

Analysis and Modeling

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.

Analysis and Modeling

Visualization and Communication

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.

Visualization and Communication

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.

Visualization and Communication

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.

Visualization and Communication

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.

Visualization and Communication

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.

Visualization and Communication

Google Cloud and BigQuery Integration

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.

Google Cloud and BigQuery Integration

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.

Google Cloud and BigQuery Integration

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?

Google Cloud and BigQuery Integration

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.

Google Cloud and BigQuery Integration

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.

Google Cloud and BigQuery Integration

Frequently asked questions

Is Gemini well-suited for Google Colab notebooks?+

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.

Can Gemini help with machine learning model selection?+

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.

How does Gemini handle large datasets?+

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.

Can Gemini explain what my model is doing?+

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.

What libraries does Gemini know for data science?+

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.

More Gemini prompt guides

Gemini for WritingGemini for ResearchGemini for CodingGemini for Data AnalysisGemini for MarketingGemini for Resume WritingGemini for Email MarketingGemini for YouTube ScriptsGemini for Meeting SummariesGemini for Cover LettersGemini for Ad CopyGemini for Business PlansGemini for Cold EmailsGemini for Social Media ContentGemini for Blog WritingGemini for SEO ContentGemini for PresentationsGemini for Product DescriptionsGemini for Sales CopyGemini for Content StrategyGemini for ProductivityGemini for HealthGemini for StudyingGemini for TravelGemini for FinanceGemini for AnalysisGemini for Job DescriptionsGemini for Technical WritingGemini for Newsletter WritingGemini for Instagram CaptionsGemini for LinkedIn PostsGemini for Twitter ThreadsGemini for TikTok ScriptsGemini for DebuggingGemini for Code ReviewGemini for Unit TestsGemini for SQLGemini for Brand VoiceGemini for Google DocsGemini for Google SheetsGemini for GmailGemini for Google SlidesGemini for Multimodal TasksGemini for Project ManagementGemini for Customer ServiceGemini for HR ProfessionalsGemini for ConsultingGemini for ProposalsGemini for PythonGemini for JavaScriptGemini for DocumentationGemini for API DevelopmentGemini for CopywritingGemini for ScriptwritingGemini for Creative WritingGemini for UX WritingGemini for Case StudiesGemini for EntrepreneursGemini for TeachersGemini for Market ResearchGemini for LegalGemini for FreelancersGemini for EmailGemini for RecipesGemini for FitnessGemini for Personal FinanceGemini for ParentingGemini for ReactGemini for TypeScriptGemini for DevOpsGemini for TestingGemini for AndroidGemini for LawyersGemini for AccountantsGemini for NursesGemini for Real EstateGemini for SalespeopleGemini for Small BusinessGemini for EcommerceGemini for StartupsGemini for NonprofitsGemini for Job SearchGemini for Language LearningGemini for Public RelationsGemini for Mental HealthGemini for Book WritingGemini for Job InterviewsGemini for Learning SpanishGemini for Learning FrenchGemini for Learning GermanGemini for Learning JapaneseGemini for Learning PortugueseGemini for Learning ItalianGemini for Learning KoreanGemini for Learning MandarinGemini for Learning ArabicGemini for Learning HindiGemini for Weight LossGemini for ADHDGemini for College EssaysGemini for Side HustlesGemini for Retirement PlanningGemini for PregnancyGemini for DivorceGemini for GriefGemini for New ParentsGemini for MovingGemini for Making MoneyGemini for Passive IncomeGemini for FreelancingGemini for Starting an Online BusinessGemini for Digital ProductsGemini for Learning DutchGemini for Learning SwedishGemini for Learning PolishGemini for Learning TurkishGemini for Learning VietnameseGemini for Wedding PlanningGemini for Starting CollegeGemini for Job LossGemini for Chronic IllnessGemini for MenopauseGemini for Learning ThaiGemini for Learning RussianGemini for Learning IndonesianGemini for Learning TagalogGemini for Learning SwahiliGemini for Divorce RecoveryGemini for Navigating Empty NestGemini for Retirement TransitionGemini for Caregiver SupportGemini for Adoption JourneyGemini for DropshippingGemini for Content Creation IncomeGemini for Amazon FBAGemini for Print on DemandGemini for Email WritingGemini for Fiction WritingGemini for Social Media MarketingGemini for SEO WritingGemini for Content MarketingGemini for RefactoringGemini for Code DocumentationGemini for Business PlanningGemini for Pitch DecksGemini for Financial ModelingGemini for FundraisingGemini for Lesson PlanningGemini for TutoringGemini for Research PapersGemini for Online CoursesGemini for Goal SettingGemini for Time ManagementGemini for JournalingGemini for Habit BuildingGemini for Weight ManagementGemini for Mental WellnessGemini for Sleep ImprovementGemini for Nutrition PlanningGemini for Fitness PlanningGemini for Salary NegotiationGemini for LinkedIn Profile OptimizationGemini for Career Change PlanningGemini for Professional NetworkingGemini for Promotion StrategyGemini for BudgetingGemini for Investing as a BeginnerGemini for Paying Off DebtGemini for Tax PlanningGemini for Saving MoneyGemini for Novel WritingGemini for Character DevelopmentGemini for WorldbuildingGemini for Poetry WritingGemini for Story StructureGemini for Homework HelpGemini for Essay WritingGemini for Exam PreparationGemini for PlanningGemini for OrganizationGemini for BusinessGemini for Meal PlanningGemini for Personal DevelopmentGemini for InvestingGemini for Financial PlanningGemini for EditingGemini for Managing Life Transitions