Python for Business Analytics

Python for Business Analytics

University

20 Qs

quiz-placeholder

Similar activities

Memahami PBO

Memahami PBO

11th Grade - University

15 Qs

Computer Architecture Unit 3

Computer Architecture Unit 3

University

15 Qs

II MCA ASP.NET ONLINE QUIZ

II MCA ASP.NET ONLINE QUIZ

University

15 Qs

IT 209

IT 209

University

15 Qs

IT (data, viruses and more)

IT (data, viruses and more)

8th Grade - Professional Development

20 Qs

Assessment 08

Assessment 08

University

15 Qs

Quiz on neural network unit II

Quiz on neural network unit II

University

16 Qs

GIS Unit-1

GIS Unit-1

University

15 Qs

Python for Business Analytics

Python for Business Analytics

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Prasant Rout

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers