Note
Pandas (13) 본문
728x90
How to find the positions of numbers that are multiples of 3 from a series?
# Input
ser = pd.Series(np.random.randint(1, 10, 7))
ser
# Solution
print(ser)
np.argwhere(ser % 3==0)
'Pandas' 카테고리의 다른 글
Pandas (15) (0) | 2022.08.06 |
---|---|
Pandas (14) (0) | 2022.08.05 |
Pandas (12) (0) | 2022.08.02 |
Pandas (11) (0) | 2022.07.31 |
Pandas (10) (0) | 2022.07.30 |
Comments