mirror of
https://github.com/TheAlgorithms/Python.git
synced 2025-07-04 16:57:32 +08:00
[pre-commit.ci] pre-commit autoupdate (#11275)
* [pre-commit.ci] pre-commit autoupdate updates: - [github.com/astral-sh/ruff-pre-commit: v0.1.14 → v0.2.0](https://github.com/astral-sh/ruff-pre-commit/compare/v0.1.14...v0.2.0) * Upgrade pyproject.toml * Revert sudoku_solver.py RUF017 Avoid quadratic list summation --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Christian Clauss <cclauss@me.com>
This commit is contained in:
![66853113+pre-commit-ci[bot]@users.noreply.github.com](/assets/img/avatar_default.png)
committed by
GitHub

parent
4128f19170
commit
ed8d9209da
@ -237,7 +237,7 @@ def report_generator(
|
||||
[
|
||||
("sum", "sum"),
|
||||
("mean_with_zeros", lambda x: np.mean(np.nan_to_num(x))),
|
||||
("mean_without_zeros", lambda x: x.replace(0, np.NaN).mean()),
|
||||
("mean_without_zeros", lambda x: x.replace(0, np.nan).mean()),
|
||||
(
|
||||
"mean_25-75",
|
||||
lambda x: np.mean(
|
||||
|
@ -589,7 +589,7 @@ def plot_partition_boundary(
|
||||
ax.contour(
|
||||
xrange,
|
||||
yrange,
|
||||
np.mat(grid).T,
|
||||
np.asmatrix(grid).T,
|
||||
levels=(-1, 0, 1),
|
||||
linestyles=("--", "-", "--"),
|
||||
linewidths=(1, 1, 1),
|
||||
|
Reference in New Issue
Block a user