Files
main/awesome-cursor-rules-mdc/pandas-scikit-learn-guide-cursorrules-prompt-file/performance-optimization-rules.mdc
T
2025-02-17 17:50:15 +05:30

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.