CBSE Class 12 Informatics Practices
Question 96 of 167
Python Pandas — I — Question 7
Back to all questions(a)
[20, 40, 90, 110, 20, 40, 90, 110]
In the first statement, x represents a list. When a list is multiplied by 2 (x*2), it replicates each element of the list twice.
(b)
0 40
1 80
2 180
3 220
dtype: int64
In the second statement, y represents a Series. When a Series is multiplied by a value, each element of the Series is multiplied by 2, as Series supports vectorized operations.