Question: --python excersise22 a) Write a Pandas program to add some data to an existing Series. #Sample Output: #Original Data Series: #0 100 #1 200 #2

--python excersise22

a) Write a Pandas program to add some data to an existing Series.

#Sample Output:

#Original Data Series:

#0 100

#1 200

#2 python

#3 300.12

#4 400

#dtype: object

#Result, Data Series after adding some data:

#0 100

#1 200

#2 python

#3 300.12

#4 400

#0 500

#1 php

#dtype: object

b)Write a Pandas program to create the mean and standard deviation of the data of a given Series.

#Sample Output:

#Original Data Series:

#0 1

#1 2

#2 3

#3 4

#4 5

#5 6

#6 7

#7 8

#8 9

#9 5

#10 3

#dtype: int64

#Result:

#Mean of the said Data Series:

#4.81818181818

#Standard deviation of the said Data Series:

#2.52262489555

c) Write a Pandas program to get the items of a given series not present in another given series. You can use the .isin method of the Pandas Series. Negation, which is presented with ~ can help you as well. Feel free to solve it in some another way.

#Sample Output:

#Original Series:

#sr1:

#0 1

#1 2

#2 3

#3 4

#4 5

#dtype: int64

#sr2:

#0 2

#1 4

#2 6

#3 8

#4 10

#dtype: int64

#Result, Items of sr1 not present in sr2:

#0 1

#2 3

#4 5

#dtype: int64

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!