BMAD-METHOD/.claude/rules/pandas-scikit-learn-guide-c.../performance-optimization-ru...

8 lines
459 B
Plaintext

---
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.