write a program to generate a series and print the top 3 elements and bottom 3 elements.
Answers
Answered by
3
Explanation:
hope it will help you please mark the answer brain list please
Attachments:
Answered by
1
Answer:
import pandas as pd
obj= pd.Series(range(41,71,3))
print(obj)
print('head elements are:')
print(obj.head(3))
print('Tail elements are:')
print(obj.tail(3))
Explanation:
Attachments:
Similar questions
Sociology,
1 month ago
Computer Science,
1 month ago
Political Science,
1 month ago
Physics,
3 months ago
English,
10 months ago