English

Using the series created in Question 5, write commands for the following: a) Display the names of the months 3 through 7 from the Series MonthDays.

Advertisements
Advertisements

Question

Using the series created in Question 5, write commands for the following:

  1. Display the names of the months 3 through 7 from the Series MonthDays.
  2. Display the Series MonthDays in reverse order.
Code Writing
Advertisements

Solution

 print(MonthDays[3:8])

print(MonthDays[::-1])

shaalaa.com
  Is there an error in this question or solution?
Chapter 2: Data Handling using Pandas - I - Exercise [Page 61]

APPEARS IN

NCERT Informatics Practices [English] Class 12
Chapter 2 Data Handling using Pandas - I
Exercise | Q 8. | Page 61
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×