CBSE Class 12 Informatics Practices
Question 1 of 44
Solved 2025 Sample Question Paper CBSE Class 12 Informatics Practices (065) — Question 1
Back to all questionsTrue
Reason — Slicing can be used to extract a specific portion from a Pandas Series by specifying the start, stop, and step values. The syntax is Series[start:stop:step].
For example,
import pandas as pd
data = pd.Series([5, 10, 15, 20, 25, 30, 35])
sliced_data = data[1:5:1]
print(sliced_data)1 10
2 15
3 20
4 25
dtype: int64