Back to Toolkit
PromptResearch

Data to Graph (Python)

Generates code to visualize data.

What This Is

Generates code to visualize data.

Prompt Template

I have a CSV with columns: Group (A/B) and TumorSize. Write a Python script using seaborn to create a boxplot comparing the two groups with a jitter overlay. Also calculate the t-test p-value and annotate it on the plot.

How to Use It

  • Replace each bracketed placeholder with de-identified case details, names, dates, or constraints.
  • Paste the revised prompt into your AI tool, then ask one or two follow-up questions to tighten the output.
  • Review the final text yourself before using it in clinical, research, or administrative work.

Example Output

Python code that generates a publication-ready boxplot.

Explore More Prompts

Check out the full toolkit for more AI-assisted clinical and research workflows.

View Toolkit