# How to multiply pandas series by value?

2 answers

I assume you are referring to boolean indexing in the series.

More `x`

:

```
x = 5
>>> s[s > x] # Alternatively, s[s.gt(x)].
5 6
6 7
7 8
8 9
9 10
dtype: int64
```

Less `x`

(i.e. below x):

```
s[s < x] # or s[s.lt(x)]
```

+3

source to share