Advertisements
Advertisements
Question
Which of the following Python statements will be used to select a specific element having index as points, from a Pandas Series named ser?
Options
ser.element (points)ser.select (points)ser[points]ser.show[points]
MCQ
Advertisements
Solution
ser[points]
Explanation:
In Pandas, a particular element in a Series can be accessed using its index with bracket notation: series_name[index_name].
shaalaa.com
Is there an error in this question or solution?
