Q. What will be the output produced by the following code?
Stationery = ['pencils', 'notebooks', 'scales', 'erasers']
S = pd.Series ([20, 33, 52, 10], index = Stationery)
S2 = pd.Series ([17, 13, 31, 32], index = Stationery)
print (S = S2)
S = S + S2
print (S + S2)
Answer :-
It will produce error.
Error in 4th line.
why is there the error
ReplyDeleteBecause the string value cannot be equals to integer value .
DeleteBecause the stationery is not an series
ReplyDeletePost a Comment
You can help us by Clicking on ads. ^_^
Please do not send spam comment : )