Python for Business Analytics

Python for Business Analytics

University

20 Qs

quiz-placeholder

Similar activities

unit1

unit1

University

15 Qs

InCube #Quiz 2

InCube #Quiz 2

University

15 Qs

Season 5 #Spaic Python Weekly Quiz

Season 5 #Spaic Python Weekly Quiz

KG - Professional Development

20 Qs

Data Structures

Data Structures

University

20 Qs

Data Storage

Data Storage

University - Professional Development

15 Qs

DATASET'24 Quizz (Round 3)

DATASET'24 Quizz (Round 3)

University

20 Qs

AV1\R1 3TEC_Ciência de Dados - Aula 01 a  16

AV1\R1 3TEC_Ciência de Dados - Aula 01 a 16

1st Grade - University

15 Qs

Sjmit-Q2-[Workshop-MAR-25]

Sjmit-Q2-[Workshop-MAR-25]

12th Grade - University

20 Qs

Python for Business Analytics

Python for Business Analytics

Assessment

Quiz

Computers

University

Medium

Created by

Prasant Rout

Used 1+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Pandas stands for

Panel Data

Panel Statistics

Data Panels

Panel Analysis

Answer explanation

Pandas is derived from 'Panel Data', which refers to multidimensional data structures. The other options do not accurately represent the term, making 'Panel Data' the correct choice.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the correct parameters (required + optional) to create pandas series?

     pandas.Series(data, index, dtype)

pandas_Series(data, index, dtype, name)

pandas_Series(data, index, dtype, copy)

    pandas.Series(data, index, dtype, copy, name)

Answer explanation

The correct parameters to create a pandas Series are data, index, dtype, copy, and name. The choice 'pandas.Series(data, index, dtype, copy, name)' includes all required and optional parameters.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What are the correct parameters (required + optional) to create pandas dataframe?

pandas.DataFrame( data, index, dtype, copy)

pandas.DataFrame( data, index, rows, dtype, copy)

  pandas_DataFrame( data, index, columns, dtype, copy)

   pandas.DataFrame( data, index, columns, dtype, copy)

Answer explanation

The correct parameters to create a pandas DataFrame are 'data', 'index', 'columns', 'dtype', and 'copy'. The option 'pandas_DataFrame' is incorrect, and 'rows' is not a valid parameter.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In pandas, index values must be?

unique

hashable

Both (a) and (b)

None of the above

Answer explanation

In pandas, index values must be both unique and hashable. Unique ensures no duplicate entries, while hashable allows for efficient data retrieval. Therefore, the correct answer is 'Both (a) and (b)'.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is correct features of pandas DataFrame?

Labeled axes (rows and columns)

Potentially columns are of different types

Can Perform Arithmetic operations on rows and columns

All of the above

Answer explanation

All the listed features are correct for a pandas DataFrame: it has labeled axes, can contain different data types in columns, and supports arithmetic operations on rows and columns.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following library in Python is used for plotting graphs and visualization?

Pandas

NumPy

Matplotlib

SciPy

Answer explanation

Matplotlib is the primary library in Python for creating static, animated, and interactive visualizations. While Pandas and NumPy are used for data manipulation and numerical operations, Matplotlib specifically focuses on plotting.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be output for the following code?

import pandas as pd

s = pd.Series([1,2,3,4,5],index = [‘a’,’b’,’c’,’d’,’e’])

print(s[‘a’])

2

5

1

3

Answer explanation

The code creates a pandas Series with custom indices. Accessing s['a'] retrieves the first element, which is 1. Therefore, the output is 1.

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?