1. Write a Python Pandas program to show a one dimensional array-like object contains the array in the following output.
The output is:
a = ['Python', 'Pandas', 'Free', 'Exercises', 'Solutions']
Expected Answer:
0 Python
1 Pandas
2 Free
3 Exercises
4 Solutions
dtype: object
Sample Answer:
import pandas as pd a = pd.Series(['Python', 'Pandas', 'Free', 'Exercises', 'Solutions']) print(a)
More Exercises:
Python String ExercisesMore Numpy Exercises:
Numpy String ExercisesMore Pandas Exercises:
Pandas Series ExercisesMore Tutorials:
Python Installation - Linux (Ubuntu)