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?
