Plotting in Python

Question 1
Marks : +2 | -2
Pass Ratio : 100%
Point out the correct combination with regards to kind keyword for graph plotting.
‘hist’ for histogram
‘box’ for boxplot
‘area’ for area plots
all of the mentioned
Explanation:
The kind keyword argument of plot() accepts a handful of values for plots other than the default Line plot.
Question 2
Marks : +2 | -2
Pass Ratio : 100%
Which of the following value is provided by kind keyword for barplot?
bar
kde
hexbin
none of the mentioned
Explanation:
bar can also be used for barplot.
Question 3
Marks : +2 | -2
Pass Ratio : 100%
You can create a scatter plot matrix using the __________ method in pandas.tools.plotting.
sca_matrix
scatter_matrix
DataFrame.plot
all of the mentioned
Explanation:
You can create density plots using the Series/DataFrame.plot.
Question 4
Marks : +2 | -2
Pass Ratio : 100%
Which of the following plots are often used for checking randomness in time series?
Autocausation
Autorank
Autocorrelation
None of the mentioned
Explanation:
If the time series is random, such autocorrelations should be near zero for any and all time-lag separations.
Question 5
Marks : +2 | -2
Pass Ratio : 100%
__________ plots are used to visually assess the uncertainty of a statistic.
Lag
RadViz
Bootstrap
None of the mentioned
Explanation:
Resulting plots and histograms are what constitutes the bootstrap plot.
Question 6
Marks : +2 | -2
Pass Ratio : 100%
Point out the wrong combination with regards to kind keyword for graph plotting.
‘scatter’ for scatter plots
‘kde’ for hexagonal bin plots
‘pie’ for pie plots
none of the mentioned
Explanation:
kde is used for density plots.
Question 7
Marks : +2 | -2
Pass Ratio : 100%
The plot method on Series and DataFrame is just a simple wrapper around ____________
gplt.plot()
plt.plot()
plt.plotgraph()
none of the mentioned
Explanation:
If the index consists of dates, it calls gcf().autofmt_xdate() to try to format the x-axis nicely.
Question 8
Marks : +2 | -2
Pass Ratio : 100%
Andrews curves allow one to plot multivariate data.
True
False
Explanation:
Curves belonging to samples of the same class will usually be closer together and form larger structures.
Question 9
Marks : +2 | -2
Pass Ratio : 100%
Plots may also be adorned with error bars or tables.
True
False
Explanation:
There are several plotting functions in pandas.tools.plotting.
Question 10
Marks : +2 | -2
Pass Ratio : 100%
Which of the following plots are used to check if a data set or time series is random?
Lag
Random
Lead
None of the mentioned
Explanation:
Random data should not exhibit any structure in the lag plot.