mirror of
https://github.com/sanjeed5/awesome-cursor-rules-mdc.git
synced 2026-11-30 23:04:59 +08:00
rename to deprecated
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
---
|
||||
description: Defines rules for creating informative and visually appealing plots using matplotlib and seaborn, emphasizing proper labels, titles, legends, and color schemes.
|
||||
globs: **/*.py
|
||||
---
|
||||
- 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.
|
||||
- Create reusable plotting functions for consistent visualizations.
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
---
|
||||
description: Governs error handling and data validation practices, including data quality checks, missing data handling, and data type validation.
|
||||
globs: **/*.py
|
||||
---
|
||||
- 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.
|
||||
+18
@@ -0,0 +1,18 @@
|
||||
---
|
||||
description: Applies general guidelines for data analysis, visualization, and Jupyter Notebook development with Python, focusing on best practices with pandas, matplotlib, and seaborn.
|
||||
globs: **/*.ipynb
|
||||
---
|
||||
- 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.
|
||||
- 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.
|
||||
- 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.
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
---
|
||||
description: Sets the convention to begin any analysis with data exploration and summary statistics, providing a consistent starting point.
|
||||
globs: **/*.py
|
||||
---
|
||||
- Begin analysis with data exploration and summary statistics.
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
---
|
||||
description: Focuses on pandas-specific rules for data manipulation, including method chaining, data selection using loc/iloc, and groupby operations.
|
||||
globs: **/*.py
|
||||
---
|
||||
- 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.
|
||||
+8
@@ -0,0 +1,8 @@
|
||||
---
|
||||
description: Outlines rules for optimizing performance, including vectorized operations, efficient data structures, and profiling code for bottlenecks.
|
||||
globs: **/*.py
|
||||
---
|
||||
- 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.
|
||||
Reference in New Issue
Block a user