Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 10

SERIES

 Methods to create series

 Empty series

OUTPUT

 Non-Empty series

1. By Numpy array

OUTPUT
2. By list

OUTPUT

3. By dictionary
OUTPUT

QUE : Consider a series object ‘s’ that stores the number of students in each section of class 12
as shown, first two section have been given task for selling tickets at rate 100rs per ticket as a
part of social experiment. Write a code to create the series and display how much section A
and B have collected.

A 39
B 31
C 32
D 34
E 35
OUTPUT

QUE: Consider a series S4 as given below:

A 6700
B 8000
C 5400
D 3400

Write a code to modify section A as 8800 and for section C and D, 7700. Print the changed
object.
OUTPUT

QUE: Create two series S1 and S2. Perform various mathematical operations (+,-,*,/) on both
the series
OUTPUT
QUE: Write a pandas program to find out the biggest and smallest three area from given series
that stores the area of some states in km2.
OUTPUT
QUE: Number of students in class XI and XII in each streams (science, commerce, humanities)
are stored in two series object C11 and C12.Write a code to create the series and find total
number of students in class XI and XII stream-wise.

C11 C12
Science 30 37
Commerce 40 44
Humanities 50 45

OUTPUT

You might also like