Files
main/rules-v0/pandas-scikit-learn-guide-cursorrules-prompt-file/error-handling-and-data-validation-rules.mdc
2025-02-27 00:04:07 +05:30

8 lines
453 B
Plaintext

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