Write a program to create a pandas series and illustrate the use of loc and iloc attributes and also the index operator in accessing the elements from the series.
Answers
Answered by
1
Explanation:
# import pandas as pd
import pandas as pd
# import numpy as np
import numpy as np
# simple array
data = np.array(['g','e','e','k','s'])
ser = pd.Series(data)
print(ser)
Similar questions