English

Write Python series to print scalar value “10” 5 times. -

Advertisements
Advertisements

Question

Write Python series to print scalar value “10” 5 times.

Options

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

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

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

  • s = pd.Series(10, index=[11,12,13,14,15])

MCQ

Solution

s = pd.Series(10, index=[11,12,13,14,15])

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

Englishहिंदीमराठी


      Forgot password?
Use app×