Q. What will be the output of the following program?
import pandas as pd
fst = [9, 10, 11]
scd= pd.Series (fst)
ob1 = pd.Series (data = fst * 2)
ob2 = pd.Series (data = scd * 2)
print("ob1")
print (ob1)
print("ob2")
print (ob2)
Answer :-
ob1
0 9
1 10
2 11
3 9
4 10
5 11
dtype: int64
ob2
0 18
1 20
2 22
dtype: int64
Post a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )