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.

3 Comments

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

  1. why is there the error

    ReplyDelete
    Replies
    1. Because the string value cannot be equals to integer value .

      Delete
  2. Because the stationery is not an series

    ReplyDelete

Post a Comment

You can help us by Clicking on ads. ^_^
Please do not send spam comment : )

Previous Post Next Post