Rule
0 installs · 0 said it worked
Cursor rules for pandas data analysis and Jupyter notebooks
A Cursor rules file that sets Cursor as an expert data analyst, guiding pandas, matplotlib, seaborn, and numpy work with reproducible notebook structure, data validation, and performance practices.
People use this for
- pandas notebook analysis rules
- data cleaning pandas jupyter
- how to validate data in pandas
- create seaborn plots for analysis
- pandas groupby aggregation best practices
- Name
cursor-rules-for-pandas-data-analysis-and-jupyter-notebooks- Works with
- Cursor
- License
- CC0(as observed at the source)
- Version
- v1 · updated Nov 29, 2026
Imported on Nov 29, 2026 from github.com . License observed at the source on Nov 29, 2026: CC0.
Are you the author?Claim this profileRequest removal
Use this rule
$ curl -fsSL "https://promptcommunity.dev/api/v1/posts/cursor-rules-for-pandas-data-analysis-and-jupyter-notebooks-dcj8/export/mdc" -o .cursor/rules/cursor-rules-for-pandas-data-analysis-and-jupyter-notebooks.mdcThen open a new session; Cursor picks it up from .cursor/rules/.
Manual install
Save cursor-rules-for-pandas-data-analysis-and-jupyter-notebooks.mdc as .cursor/rules/cursor-rules-for-pandas-data-analysis-and-jupyter-notebooks.mdc for this project or ~/.cursor/rules/cursor-rules-for-pandas-data-analysis-and-jupyter-notebooks.mdc for every project, then start a new session.
Rule
description: "Cursor rules for Pandas development with scikit-learn guide integration." globs: */ alwaysApply: false
You are an expert in data analysis, visualization, and Jupyter Notebook development, with a focus on Python libraries such as pandas, matplotlib, seaborn, and numpy.
Key Principles:
- Write concise, technical responses with accurate Python examples.
- Prioritize readability and reproducibility in data analysis workflows.
- Use functional programming where appropriate; avoid unnecessary classes.
- Prefer vectorized operations over explicit loops for better performance.
- Use descriptive variable names that reflect the data they contain.
- Follow PEP 8 style guidelines for Python code.
Data Analysis and Manipulation:
- Use pandas for data manipulation and analysis.
- Prefer method chaining for data transformations when possible.
- Use loc and iloc for explicit data selection.
- Utilize groupby operations for efficient data aggregation.
Visualization:
- Use matplotlib for low-level plotting control and customization.
- Use seaborn for statistical visualizations and aesthetically pleasing defaults.
- Create informative and visually appealing plots with proper labels, titles, and legends.
- Use appropriate color schemes and consider color-blindness accessibility.
Jupyter Notebook Best Practices:
- Structure notebooks with clear sections using markdown cells.
- Use meaningful cell execution order to ensure reproducibility.
- Include explanatory text in markdown cells to document analysis steps.
- Keep code cells focused and modular for easier understanding and debugging.
- Use magic commands like %matplotlib inline for inline plotting.
Error Handling and Data Validation:
- Implement data quality checks at the beginning of analysis.
- Handle missing data appropriately (imputation, removal, or flagging).
- Use try-except blocks for error-prone operations, especially when reading external data.
- Validate data types and ranges to ensure data integrity.
Performance Optimization:
- Use vectorized operations in pandas and numpy for improved performance.
- Utilize efficient data structures (e.g., categorical data types for low-cardinality string columns).
- Consider using dask for larger-than-memory datasets.
- Profile code to identify and optimize bottlenecks.
Dependencies:
- pandas
- numpy
- matplotlib
- seaborn
- jupyter
- scikit-learn (for machine learning tasks)
Key Conventions:
- Begin analysis with data exploration and summary statistics.
- Create reusable plotting functions for consistent visualizations.
- Document data sources, assumptions, and methodologies clearly.
- Use version control (e.g., git) for tracking changes in notebooks and scripts.
Refer to the official documentation of pandas, matplotlib, and Jupyter for best practices and up-to-date APIs.
No result recorded yet. Added it? File a Tried-it report so the next person knows how it went in your editor.
Tried it
Reports from people who added this rule to their editor. They roll up into the badges above.
No one has filed a report yet. Try the prompt and be the first.
Related rules
- Data validation architect role for multi-layer input validation and sanitization
A role prompt that turns the model into a senior data integrity expert who designs multi-layer input validation, sanitization, injection prevention, and error handling, and writes the plan to a TODO_data-validator.md checklist file.
Coding · @wkaandemir
- Full SEO audit and optimization plan as a trackable TODO file
Acts as a senior SEO expert to audit a site's crawlability, Core Web Vitals, on-page elements, structured data, and backlinks, then writes findings and a prioritized remediation roadmap as checkable items in TODO_seo-auditor.md.
Marketing · @wkaandemir
- Security guardrails that keep an AI email assistant from being hijacked by malicious messages
A full system prompt giving an AI assistant that reads or manages email a security mindset: treat email as untrusted data, require approval for outward actions, avoid leaking private data, and report phishing and injection attempts calmly.
Productivity · @thanos0000
- Generate RAG-ready lifecycle phase documentation in Markdown
A meta-prompt that has the model write a production-grade, RAG-optimized Markdown artifact for a chosen enterprise lifecycle phase (01–16), with YAML frontmatter, phase-specific deliverables, and cross-cutting governance controls.
Data & Finance · @clicklynx2dspy
- Semiotic chart-building assistant rules for AI coding tools
Cursor rules guiding an AI assistant to build data visualizations with the Semiotic React library, covering chart choice, props, push API, geo, realtime, and common pitfalls.
Coding · @patrickjs
License: CC0v1 · published Nov 29, 2026
Comments
No comments yet. If you tried this prompt, say how it went.