English

Series to print scalar value “100” 5 times: -

Advertisements
Advertisements

Question

Series to print scalar value “100” 5 times:

Options

  • s = pd.Series(100, index=[5])

  • s = pd.Series(100*5)

  • s = pd.Series(100,5)

  • s = pd.Series(100, index=[1, 2, 3, 4, 5])

MCQ

Solution

s = pd.Series(100, index=[1, 2, 3, 4, 5])

shaalaa.com
A Series
  Is there an error in this question or solution?
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×