
Python for Business Analytics
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Prasant Rout
Used 1+ times
FREE Resource
Enhance your content in a minute
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
20 questions
STS Informatika
Quiz
•
10th Grade - University
15 questions
ADB Quiz #1
Quiz
•
University
15 questions
Computer and Other Human Inventions
Quiz
•
University
20 questions
Digital and Analog transmission
Quiz
•
University
20 questions
Soal AIJ bulan Agustus 2019 kls xii
Quiz
•
University
15 questions
GIS Unit III
Quiz
•
University
15 questions
Ms. Exel dan Fungsi Logika IF
Quiz
•
10th Grade - University
20 questions
Fotogrametri dan Penginderaan Jauh
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
