**Python scripting** : I want to multiply an entire matrix except for one row/column with a scalar. The row/column number is a variable.

For example,

```
[[2 2 2 2 2]
[2 2 2 2 2]]

```

num = 2

scalar = 3

I want the result to look like this

```
[[6 6 2 6 6]
[6 6 2 6 6]]

```

I don't want any loops. I can use either numpy or pandas. What is the best way to achieve this?