NEW
Font size
WorksheetsPython Libraries Series - Pandas
Total questions: 11
Worksheet time: 22mins
What does this line of code do?
Selects cols with vals > 1
Selects cols without NaN
Selects cols with any vals >1
Selects cols with NaN
What does this line of code do?
Selects cols with vals > 1
Selects cols without NaN
Selects cols with any vals >1
Selects cols with NaN
What does this line of code do?
Drops NaN values
Replaces values with others
Fills NaN values with a predetermined value
This is an example of _______.
Data aggregation
Data transformation
Data visualisation
Imputing missing values
Checking for duplicates
What does this line of code do?
What does this line of code do?
_____ is a two-dimensional labelled data structure with columns of potentially different types, while_____ is a one-dimensional labelled array capable of holding any data type
Series, DataFrame
DataFrame, Series
____iterates over the DataFrame columns, returning a tuple with the column name and the content as a Series.
____returns a tuple with row index and row data as a Series object.
df.items(), df.iterrows()
df.iterrows(), df.items()
Find correct descriptions
a. Subsets the data
b. Filters on values
c. Selects and reset the index
a. Selects columns with specific data type
b. Filters on values
c. Selects specific elements
a. Finds same elements
b. Filters on values
c. Selects specific elements
What does this line of code do?
Returns unique values
Checks duplicates
Drops duplicates
Checks index duplicates
Pandas is_________.
a Python library that is built on NumPy and provides easy-to-use data structures and data analysis tools for the Python programming language.
a Python 2D plotting library which produces publication-quality figures in a variety of hardcopy formats and interactive environments across platforms.
a Python library that implements a range of machine learning,
preprocessing, cross-validation and visualization algorithms using a unified interface.
