Skip to content

Conversation

@DefinitelyNik
Copy link

No description provided.

"first = np.random.randint(-15, 16, 25).reshape(5, 5)\n",
"print(first)\n",
"\n",
"first = np.array([x ** 2 if x < 0 else x for x in first.flatten()]).reshape(5, 5)\n",
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Булевая индексация или np.where

@railbotan
Copy link
Owner

У меня возникли сомнения, что вы выполнили задание самостоятельно. Предлагаю вам на следующей паре защитить вашу работу.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants