Data Analysis with Python

This quiz contains multiple-choice problems on pandas, time deltas, Python plotting, data structures and computational tools.

Start Quiz

Numeric reduction operation for timedelta64[ns] will return __ objects.

Timeseries

Timeplus

Timedelta

None of the above

Which of the following scalars can be converted to other ‘frequencies’ by typing a specific timedelta type?

Timedelta Series

TimedeltaIndex

Timedelta

All of the above

The combination of TimedeltaIndex with DatetimeIndex allows certain combination operations that are NaT preserving. True or false?

True

False

Using __ on categorical data will produce a similar output to a Series or DataFrame type string.

.desc()

.describe()

.rank()

None of the above

Which of the following methods can be used to rename categorical data?

Categorical.rename_categories()

Categorical.rename()

Categorical.mv_categories()

None of the above

All values of categorical data are either in categories or np.nan. True or false?

True

False

The plot method on Series and DataFrame is just a simple wrapper around

gplt.plot()

plt.plot()

plt.plotgraph()

None of the above

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 above

You can create a scatter plot matrix using the __ method in pandas.tools.plotting.

sca_matrix

scatter_matrix

DataFrame.plot

All of the above

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 above

Which of the following plots are used to check if a data set or time series is random?

Lag

Random

Lead

None of the above

Plots may also be adorned with error bars or tables. True or false?

True

False

Which of the following plots are often used in checking the randomness in time series?

Autocausation

Autorank

Autocorrelation

None of the above

Which of the following operations are supported by time frames?

idxmax

ixmax

ixmin

None of the above

Which of the following is used to generate an index with timedelta?

TimeIndex

TimedeltaIndex

LeadIndex

None of the above

Quiz/Test Summary
Title: Data Analysis with Python
Questions: 15
Contributed by:
Ivan