Pandas Quiz 5

Share with others

Welcome to your Pandas Quiz 5

Name
Email
School Name
Q41. Which of the following statement will print Series 'S1' in reverse order?

Q42. How many values will be modified by last statement of given code ?

import pandas as pd
S1 = pd.Series(['NewDelhi', 'WashingtonDC', 'London', 'Paris'],
index=['A', 'B', 'C', 'D'])
S1['A':'C']='ND'

Q43. How many values will be modified by last statement of given code ?

import pandas as pd
S1 = pd.Series(['NewDelhi', 'WashingtonDC', 'London', 'Paris'],
index=['A', 'B', 'C', 'D'])
S1[1 : 3]='ND'

Q44. Which of the following property/attribute assign name to the Series?

Q45. S1.values will return all the values of Series 'S1' in ______________

Q46. Which of the following property/attribute return total number of values in Series 'S1'?

Q47. Which of the following attributes returns True if there is no value in Series?

Q48. Which of the following attributes returns all the values of Series?

Q49. Write the output of the following code:

import pandas as pd
S1=pd.Series()
print(pd.Series().empty)

Q50. Write the output of the following code :

import pandas as pd
S1=pd.Series([1,2,3,4])
S2=pd.Series([7,8])
S3=S1+S2
print(S3.size)


Share with others

Leave a Reply