Computer Science, asked by satindra909090singh, 1 month ago

1. Write a program to create a Series object using an Nd-array that has 10
elements at equal distance in the range 100 to 200?
0 110.0
1 120.0
2 130.0
3 140.0
4 150.0
5 160.0
6 170.0
7 180.0
8 190.0
9 200.0
dtype: float64​

Attachments:

Answers

Answered by gilsonbabu04
0

Answer:

import numpy

print("Creating 5X2 array using numpy.arange")

sampleArray = numpy.arange(100, 200, 10)

sampleArray = sampleArray.reshape(5,2)

print (sampleArray)

Similar questions