









Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!










T/F: The index of a Series object should be an integer ✔✔False
T/F: The Index object follows many of the conventions used by Python's built-in set data structure ✔✔True
T/F: Unlike a dictionary, the Series supports array-style operations such as slicing ✔✔True
T/F: A Pandas Series is a one-dimensional array of indexed data ✔✔True
indA = pd.Index([1, 3, 5, 7, 9])
indB = pd.Index([2, 3, 5, 7, 11])
indA | indB # union
data = pd.Series([0.25, 0.5, 0.75, 1.0], index=['a', 'b', 'c', 'd'])
data[0:2] ✔✔a 0.
b 0.
dtype: float
consider the DataFrame data
columns = area, pop
rows = California, Florida, Illinois, New York, Texas
to get the population of California
consider the DataFrame data
columns = area, pop
rows = California, Florida, Illinois, New York, Texas
data = pd.Series(['a', 'b', 'c'], index=[1, 3, 5])
data.iloc[1]
T/F: Like a dictionary, the Series object provides a mapping from a collection of keys to a collection of values ✔✔True
A = pd.Series([2, 4, 6], index=[0, 1, 2])
B = pd.Series([1, 3, 5], index=[1, 2, 3])
A + B
What function can be used to fill each na value using the previous value in the data frame
Which function is used to return a copy of the data with missing values filled or imputed
What are the two special sentinels that can be used to indicate a missing value?
T/F: A multi-index can be used to represent two-dimensional data within a one-dimensional Series ✔✔True
T/F: A multi-indexed Series can be converted to a DataFrame ✔✔True
T/F: Pandas allows MultiIndex for columns ✔✔True
T/F: a MultiIndex can be used to represent data of more than two dimensions in a Series ✔✔True
What method can be used to convert a multiply indexed Series into a conventionally indexed DataFrame:
ser1 = pd.Series(['A', 'B', 'C'], index=[1, 2, 3])
ser2 = pd.Series(['D', 'E', 'F'], index=[1, 2, 3])
pd.concat([ser1, ser2])
2 B
3 C
1 D
2 E
3 F
dtype: object
When concatenating two data frames, to restrict the result to the common columns, we can use the option
T/F: An essential piece of analysis of large data is efficient summarization by computing aggregations like sum(), mean(), median(), min(), and max(), ✔✔True
To aggregate data in Pandas we use the function:
The three steps in a groupby operation are
To convert a column of string values to multiple columns of numerical values, we use
One advantage of Pandas vectorized string compared to built-in string methods is
T/F: Slicing is not allowed in Pandas vectorized string operations ✔✔False
T/F: Nearly all Python's built-in string methods are mirrored by a Pandas vectorized string method. ✔✔True
T/F: Regular expressions are supported in Pandas vectorized string operations ✔✔True
Time deltas reference
The difference between time intervals and periods
The difference between two Timestamp values is a value of the following time:
To create a Timestamp object from a string 'May 18 2019'
XML organizes data in a
T/F: XQUERY and XPATH are incompatible ✔✔False
T/F: the structure of the XML document is specified with its nested attributes ✔✔False
T/F: In XML, tags can have optional attributes ✔✔True
T/F: XQuery for XML is like SQL for databases ✔✔True
HTML stands for:
Which BeautifulSoup method can find all the instances of a tag on a page
HTML tag classes and ids are:
Which Python package is used to parse an HTML document
When two tags are nested within the same parent tag, they are an example of a ____ relationship
T/F: In Altair, it is possible to aggregate data before plotting it ✔✔True
In Altair, to add more details to how data is displayed, we can specify the ________
T/F: Nominal data are also called categorical data ✔✔True
T/F: Ordinal data consist of values that have a specific ordering ✔✔True
T/F: Nominal data consist of values that have a specific ordering ✔✔False
Which of the following can be thought of as ordinal data?
T/F: Morpohology refers to how words get modified to change their meaning with prefixes and suffixes. ✔✔True
T/F: A sentence has nested structured that is composed with phrases with their own structures ✔✔True
T/F: "Lemmatizing" a text is the process of going through the text and replacing each word with its lemma. ✔✔True
The rules for taking a singular noun and turning it into a plural noun are:
T/F: TextBlob builds on top of NLTK ✔✔True
T/F: spaCy's models are rule-based and the decisions they made reflect the expertise of linguists who programmed them ✔✔False
Which one of the following is not an example of a named entity?
spaCy determines the similarity of two words by
Which of the following features is not supported by spaCy?
T/F: spaCy supports out-of-the-box chat function ✔✔False
T/F: Network characteristics are particular to the domains in which these networks are found ✔✔False
T/F: The emergence of network science can be traced to the efforts of scholars in multiple disciplines charting network maps ✔✔True
Which property represents the number of links a node has to other nodes
Network density is
If a node has three lines extending from it to other nodes, its degree is:
T/F: NetworkX allows you to add attributes to both nodes and edges ✔✔True
In NetworkX, which function is used to get basic information about a network
What object in NetworkX is used to create an undirected network?
Histograms are useful to show
T/F: The window transform performs calculations over sorted groups of data records ✔✔True
Grouping continuous data into discrete groups is called:
T/F: The filter transform creates a new table with a subset of the original data, removing rows that fail to meet a provided predicate test ✔✔True
T/F: Altair provides various functions to aggregate data before plotting it ✔✔true