100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Exam (elaborations)

S364 Final UPDATED ACTUAL Exam Questions and CORRECT Answers

Rating
-
Sold
-
Pages
15
Grade
A+
Uploaded on
12-05-2025
Written in
2024/2025

S364 Final UPDATED ACTUAL Exam Questions and CORRECT Answers Which Pandas function from the options given below can read a dataset from a large text file? - CORRECT ANSWER - read_csv Which among the following options can be used to create a Data Frame in Pandas? - CORRECT ANSWER - Numpy array, dictionary, list A Pandas Series is a one-dimensional array which is labeled and can hold any data type. - CORRECT ANSWER - True If custom row indexes and customer column titles are not provided the index and column titles will default to "blanks" or Null values. - CORRECT ANSWER - False

Show more Read less
Institution
S364
Course
S364









Whoops! We can’t load your doc right now. Try again or contact support.

Written for

Institution
S364
Course
S364

Document information

Uploaded on
May 12, 2025
Number of pages
15
Written in
2024/2025
Type
Exam (elaborations)
Contains
Questions & answers

Subjects

Content preview

S364 Final UPDATED ACTUAL Exam
Questions and CORRECT Answers
Which Pandas function from the options given below can read a dataset from a large text file? -
CORRECT ANSWER - read_csv


Which among the following options can be used to create a Data Frame in Pandas? - CORRECT
ANSWER - Numpy array, dictionary, list


A Pandas Series is a one-dimensional array which is labeled and can hold any data type. -
CORRECT ANSWER - True


If custom row indexes and customer column titles are not provided the index and column titles
will default to "blanks" or Null values. - CORRECT ANSWER - False


To retrieve values from a Pandas Data Frame we can reference rows and columns by name or by
index value. - CORRECT ANSWER - True


Pandas does not have it's own built in Statistical functions and we have to use other libraries or
modules to perform statistical analysis. - CORRECT ANSWER - False


In pandas functions or methods such as drop(), sort_values(), mean() etc. you can use a keyword
argument axis to specify the operations to be on rows or columns, which of the following are true
relating to the axis argument? Select ALL CORRECT ones. - CORRECT ANSWER -
axis=0 in drop() drops rows, if axis is not specified, it is equivalent to axis = 0


Unlike a Pandas DataFrame a Pandas Series cannot use strings as the row index - CORRECT
ANSWER - False


How is missing values represented in Pandas dataframes and series? - CORRECT
ANSWER - np.nan or nan (Sometimes printed out as NaN)

, Which of the following is true about value_counts(). - CORRECT ANSWER - It is a
method for series, It returns the frequency of unique values


Which of the following code will return only the columns of Age and Fare from the titanic_df
dataframe? Select ALL correct answers. - CORRECT ANSWER - titanic_df[['Age',
'Fare']], titanic_df.iloc[:, [5, 9]]


Statistics such as mean, std, etc do not make sense for these columns. Which of the following
columns contain categorical data? - CORRECT ANSWER - Survived, Pclass


To remove the "Name" and "Sex" columns completely from titanic_df (meaning that the
dataframe itself is changed), what should be done to the arguments in the drop() method? -
CORRECT ANSWER - "Name" and "Sex" must be passed in as a list, axis must be set to
be 1, inplace must be set to be True


To access elements or subsets of a dataframe, we learned to use index operator [], loc[] operator
and iloc[] operator. Which of the following can be used to retrieve a row from a dataframe? Be
careful answering this question, it is best to test it out in Jupyter notebook. Select ALL
CORRECT answers. - CORRECT ANSWER - loc[] with the row index value, iloc[] with
the positional integer starting with 0, [] with the positional integer starting with 0


In pandas functions or methods such as dropna(), fillna(), replace() etc. you can use a keyword
argument inplace. What of the following statement about this argument is INCORRECT? -
CORRECT ANSWER - The default value is True


You have a dataset with employee compensation information. One column has employee
department data. Employees are from 4 department: Sales, Marketing, Accounting and HR.
These 4 values are associated with employees. You know that the data is clean except that
department values are text. What is the most appropriate step of data cleaning related to this
column? - CORRECT ANSWER - Use pd.get_dummies() to convert this column into 4
dummy variables.

Get to know the seller

Seller avatar
Reputation scores are based on the amount of documents a seller has sold for a fee and the reviews they have received for those documents. There are three levels: Bronze, Silver and Gold. The better the reputation, the more your can rely on the quality of the sellers work.
MGRADES Stanford University
View profile
Follow You need to be logged in order to follow users or courses
Sold
1078
Member since
1 year
Number of followers
102
Documents
68972
Last sold
7 hours ago
MGRADES (Stanford Top Brains)

Welcome to MGRADES Exams, practices and Study materials Just think of me as the plug you will refer to your friends Me and my team will always make sure you get the best value from the exams markets. I offer the best study and exam materials for a wide range of courses and units. Make your study sessions more efficient and effective. Dive in and discover all you need to excel in your academic journey!

3.8

171 reviews

5
73
4
30
3
46
2
8
1
14

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions