Q. In Pandas, S is a series with the following result:


S = pd.Series ([5, 10, 15, 20, 25])

The series object is automatically indexed as 0, 1, 2, 3, 4. Write a statement to assign the series as a, b, c, d, e explicitly.

Answer :-

S. index = ['a', 'b', 'e', 'd', 'e']

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post