File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
crates/ruff_linter/src/rules/ruff/rules Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,15 +13,15 @@ use crate::{FixAvailability, Violation};
1313/// Directly comparing floats can produce unreliable results due to the
1414/// inherent imprecision of floating-point arithmetic.
1515///
16- /// ## When to use [ `math.isclose()`][mathisclose] vs [ `numpy.isclose()`][numpyisclose]
16+ /// ## When to use `math.isclose()` vs `numpy.isclose()`
1717///
1818/// **Use `math.isclose()` for scalar values:**
1919/// - Comparing individual float numbers
2020/// - Working with regular Python variables (not arrays)
2121/// - When you need a single `True`/`False` result
2222///
2323/// **Use `numpy.isclose()` for array-like objects:**
24- /// - Comparing pandas Series, numpy arrays, or other vectorized objects
24+ /// - Comparing ` pandas` Series, ` numpy` arrays, or other vectorized objects
2525/// - When you need element-wise comparison of arrays
2626/// - Working in data science contexts with vectorized operations
2727///
You can’t perform that action at this time.
0 commit comments