English

Create the following series and do the specified operation: EngAlph, having 26 elements with the alphabets as values and default index values.

Advertisements
Advertisements

Question

Create the following series and do the specified operation:

EngAlph, having 26 elements with the alphabets as values and default index values.

Code Writing
Advertisements

Solution

import pandas as pd
EngAlph = pd.Series(list('ABCDEFGHIJKLMNOPQRSTUVWXYZ'))
print(EngAlph)

Output:

0 A
1  B
2 C
... 25 Z
dtype object
shaalaa.com
  Is there an error in this question or solution?
Chapter 2: Data Handling using Pandas - I - Exercise [Page 60]

APPEARS IN

NCERT Informatics Practices [English] Class 12
Chapter 2 Data Handling using Pandas - I
Exercise | Q 5. a) | Page 60
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×