CBSE Class 12 Informatics Practices
Question 11 of 18
Practice Paper — Question 8
Back to all questions0 Rahul
1 Aman
2 Karan
dtype: object
1 Aman
2 Karan
3 NaN
dtype: object
The provided Python code utilizes Pandas to create a Series p using the list name with indices [0, 1, 2]. Subsequently, p is reindexed using p.reindex([1, 2, 3]), creating a new Series p1. The output displays both p and p1.