WorksheetsTest#1
Total questions: 10
Worksheet time: 3hrs 30mins
What does Pandas stand for?
Pandas series is _____ and size _____
heterogeneous, immutable
homogeneous, mutable
heterogeneous, mutable
homogeneous, immutable
>>> df1 = pd.DataFrame([
[1,2,3],
[4,5,6],
[7,8,9]])
>>> print(df1.iat[1, 2])
What will be the output?
5
6
9
2
>>> ser1 = pd.Series(['Z', 'b', 'E', 'a', 'W'])
>>> print(ser1.max())
What will be the output?
Z
a
b
E
Which of the following is used to specify a heading for the graph to be plotted?
plt.xlabel()
plt.title()
plt.header()
plt.label()
Name the functions used to generate the following charts:
I. Line chart
II. Bar graph
III. Histogram
I. plt.Plot()
II. plt.bar()
III. plt.his()
I. plt.plot()
II. plt.Bar()
III. plt.hist()
I. plt.plot()
II. plt.bar()
III. plt.hist()
I. plt.plot()
II. plt.bar()
III. plt.His()
>>> ser1 = pd.Series([12, 13, np.nan, np.nan, 45, 56])
>>> print(ser1.count())
What will be the output of this program?
6
5
4
56
>>> ser1 = pd.Series(3*1**3, index = range(2, 12, 2))
What will be the output of this program?
2 3
4 3
6 3
8 3
10 3
2 9
4 9
6 9
8 9
10 9
2 3
4 3
6 3
8 3
10 3
12 3
2 9
4 9
6 9
8 9
10 9
12 9
Which function can be used to save your dataframe as a CSV file?
pd.write_csv()
pd.to_csv()
pd.save_csv()
pd.convert_csv()
Who developed Pandas?
Paul McKinney
Wes McCarty
Wes McKinney
Paul McCarty
