Data Analysis with Python MCQ part-1

Data analysis with Python is a versatile language that can be used and manipulation. Python has a wide range of libraries and tools that can be used for data analysis, making it a powerful tool for data scientists.

Que.Which of the following operations are supported on Time Frames?
a. idxmax
b. ixmax
c. ixmin
d. none of the mentioned
Que.Point out the correct statement.
a. Timedeltas are differences in times, expressed in difference units
b. You can construct a Timedelta scalar through various argument
c. DateOffsets cannot be used in construction
d. All of the mentioned
Que.Numeric reduction operation for timedelta64[ns] will return _________ objects.
a. Timeseries
b. Timeplus
c. Timedelta
d. None of the mentioned
Que.Which of the following scalars can be converted to other ‘frequencies’ by as typing to a specific timedelta type?
a. Timedelta Series
b. TimedeltaIndex
c. Timedelta
d. All of the mentioned
Que.Point out the wrong statement.
a. min, max, idxmin, idxmax operations are supported on Series
b. You cannot pass a timedelta to get a particular value
c. Division by the numpy scalar is true division
d. None of the mentioned
Que.Which of the following is used to generate an index with time delta?
a. TimeIndex
b. TimedeltaIndex
c. LeadIndex
d. None of the mentioned
Que.Combination of TimedeltaIndex with DatetimeIndex allow certain combination operations that are NaT preserving.
a. True
b. False
c. May be True or False
d. Can’t say
Que.Using _________ on categorical data will produce similar output to a Series or DataFrame of type string.
a. .desc()
b. .describe()
c. .rank()
d. none of the mentioned
Que.Which of the following method can be used to rename categorical data?
a. Categorical.rename_categories()
b. Categorical.rename()
c. Categorical.mv_categories()
d. None of the mentioned
Que.All values of categorical data are either in categories or np.nan.
a. True
b. False
c. May be True or False
d. Can’t say