1. Home
  2. Explore
  3. Computer Science
  4. Python for Data Analysis

Study methods

Flashcards
Quiz
Fill in the blanks
Written test
Lesson
Notes
Podcast
Content

Python for Data Analysis

  • 134Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Python Basics
The process of giving a computer instructions to perform actions is called
.

134 questions

  1. 1
    The process of giving a computer instructions to perform actions is called
    _____
    .
    Hint

    Think of the process of telling a computer what actions to perform.

    Answer

    computer programming

    Explanation

    Computer programming is the process of giving instructions to a computer to perform an action or set of actions.

  2. 2
    A programmer may choose a particular programming language based on the
    _____
    they are working on.
    Hint

    Consider the task the programmer is trying to accomplish.

    Answer

    project or problem

    Explanation

    A programmer may choose a language based on the project or problem they need to address.

  3. 3
    Python can optimize every phase of the
    _____
    , from exploring data to building machine learning models.
    Hint

    Think of the stages a dataset moves through during analysis.

    Answer

    data workflow

    Explanation

    Python can support many stages of data work, from exploring and cleaning through visualization and machine learning.

  4. 4
    Because Python uses human-friendly syntax, it is classified as a
    _____
    .
    Hint

    This category of language uses syntax designed to be more approachable for people.

    Answer

    high-level language

    Explanation

    Python is high-level because it uses human-friendly syntax that is more familiar than machine-level instructions.

  5. 5
    Early languages that required substantial training and often worked only on a specific machine were known as
    _____
    .
    Hint

    These languages are closer to the computer's underlying operations than human language is.

    Answer

    low-level languages

    Explanation

    Early programming languages that were difficult to use and often specific to one machine are called low-level languages.

  6. 6
    The rules and structures that govern how code is written are called
    _____
    .
    Hint

    This is the programming-language equivalent of grammatical rules.

    Answer

    syntax

    Explanation

    Syntax refers to the rules and structures that govern how a programming language is written.

  7. 7
    Computers interpret instructions in
    _____
    , represented by ones and zeros.
    Hint

    This number system uses two symbols to represent on and off states.

    Answer

    binary

    Explanation

    Computers operate using binary, represented as ones and zeros corresponding to transistor states.

  8. 8
    The fundamental computer component that controls electrical flow through a circuit is a
    _____
    .
    Hint

    This fundamental computer component behaves like an electrical switch.

    Answer

    transistor

    Explanation

    A transistor controls the flow of electricity through a circuit and can be on or off.

  9. 9
    Python's
    _____
    nature has helped developers create many libraries and tools.
    Hint

    This describes software whose source code can be used and developed openly.

    Answer

    open source

    Explanation

    Python's open-source nature has encouraged developers to create many libraries and tools for it.

  10. 10
    A reusable collection of code that can provide functionality such as summing numbers is a
    _____
    .
    Hint

    This reusable code collection can provide functions for common tasks.

    Answer

    library

    Explanation

    A library is a reusable collection of code that can save programmers from writing common functionality themselves.

  11. 11
    Chaining many
    _____
    together allows computers to create complex logic.
    Hint

    These on/off components are the hardware foundation described in the content.

    Answer

    transistors

    Explanation

    A computer contains billions of transistors, which operate as switches and support complex logic when connected.

  12. 12
    The name Python was inspired by the British comedy troupe
    _____
    .
    Hint

    The language name refers to a British comedy troupe.

    Answer

    Monty Python

    Explanation

    Python's creator named the language after the British comedy troupe Monty Python, not after a snake.

  13. 13
    Python's widespread use has created a large and active
    _____
    willing to help users.
    Hint

    This group of users helps answer questions and share knowledge.

    Answer

    community

    Explanation

    Python's widespread use has produced a large, active user community that can provide support.

  14. 14
    Words and symbols used to write instructions for computers are called
    _____
    .
    Hint

    These are the formal systems people use to communicate instructions to computers.

    Answer

    programming languages

    Explanation

    Programming languages use words and symbols to write instructions for computers to follow.

  15. 15
    Simple processes can be combined to create
    _____
    that express complex logic.
    Hint

    These are organized instructions for solving problems or accomplishing tasks.

    Answer

    algorithms

    Explanation

    Individual lines of code can be combined into algorithms and programs that express complex logic.

  16. 16
    The Python building blocks that store and label data are called
    _____
    .
    Hint

    They act like labeled containers or names that point to stored values.

    Answer

    variables

    Explanation

    Variables are named references to values and help store and organize data.

  17. 17
    In the expression where a variable is assigned a number, the number stored by the variable is its
    _____
    .
    Hint

    This is the data a named reference points to or contains.

    Answer

    value

    Explanation

    A variable points to a value stored in computer memory; the variable itself is not the value.

  18. 18
    An attribute describing data based on its values or possible operations is its
    _____
    .
    Hint

    It classifies data such as strings, integers, and floats.

    Answer

    data type

    Explanation

    A data type describes data according to its values, programming-language representation, or supported operations.

  19. 19
    Python's ability to interpret assigned types automatically and let variables point to different data types is called
    _____
    .
    Hint

    This Python behavior lets a variable refer to values of different types over time.

    Answer

    dynamic typing

    Explanation

    Python's dynamic typing means variables can point to objects of any data type, with types interpreted automatically when assigned.

  20. 20
    Before calling most new variables, programmers need to
    _____
    them by assigning a value.
    Hint

    Give a new variable its starting value before using it.

    Answer

    initialize

    Explanation

    Most new variables have no default type or value, so they need to be assigned before they are called.

  21. 21
    To modify the contents of a variable, you generally need to
    _____
    the new value to it.
    Hint

    The operation replaces the variable's current reference with an updated one.

    Answer

    reassign

    Explanation

    To modify a variable's contents, the changed value generally must be assigned back to the variable.

  22. 22
    In a Jupyter notebook, the
    _____
    in which cells are run matters because later values can be overwritten by rerunning earlier cells.
    Hint

    The sequence of cell execution can determine which value a variable currently has.

    Answer

    order

    Explanation

    In Jupyter notebooks, cells can change variable values, so the sequence in which cells are run affects the current state.

  23. 23
    A sequence of characters and punctuation containing textual information is a
    _____
    .
    Hint

    Text surrounded by quotation marks is usually represented with this type.

    Answer

    string

    Explanation

    A string is a sequence of characters and punctuation that contains textual information and is commonly written between quotes.

  24. 24
    A whole number without a fractional part is represented by the
    _____
    data type.
    Hint

    This number type excludes fractional and decimal parts.

    Answer

    integer

    Explanation

    Integers represent whole numbers without fractions.

  25. 25
    A numeric value that contains a decimal is represented by a
    _____
    .
    Hint

    This numeric type can represent a value such as 2.5.

    Answer

    float

    Explanation

    Floats represent numbers that contain decimals.

  26. 26
    Data that has only two possible values, usually True or False, is
    _____
    data.
    Hint

    This data type represents one of two truth states.

    Answer

    Boolean

    Explanation

    Boolean data has two possible values, usually True or False, and comparison expressions produce Boolean results.

  27. 27
    When Python automatically converts one data type to another without user involvement, it performs
    _____
    .
    Hint

    The interpreter performs this type change without a programmer explicitly requesting it.

    Answer

    implicit conversion

    Explanation

    Implicit conversion happens automatically, such as converting an integer to a float during arithmetic involving both types.

  28. 28
    A programmer-directed change of an object's data type is called
    _____
    .
    Hint

    The programmer deliberately requests the type change using a conversion function.

    Answer

    explicit conversion

    Explanation

    Explicit conversion is a user-directed type change, often using int, float, or str.

  29. 29
    Explicit conversion is sometimes called
    _____
    because the user changes an object's data type.
    Hint

    This term describes deliberately casting data from one type to another.

    Answer

    typecasting

    Explanation

    Explicit conversion is also called typecasting because the user casts or changes an object's data type.

  30. 30
    Trying to combine incompatible data types in an operation can cause a
    _____
    .
    Hint

    This error indicates that an operation was applied to incompatible types.

    Answer

    TypeError

    Explanation

    Combining incompatible data types, such as an integer and a string in an unsupported operation, can produce a TypeError.

  31. 31
    A reusable body of code for performing a specific task is a
    _____
    .
    Hint

    This named block of code can be run repeatedly to perform a task.

    Answer

    function

    Explanation

    A function is reusable code that performs a specific task and can be called when needed.

  32. 32
    In Python, the keyword
    _____
    begins a function definition.
    Hint

    This three-letter keyword begins a function definition in Python.

    Answer

    def

    Explanation

    Python uses the reserved keyword def at the start of a function definition.

  33. 33
    The names specified in a function definition to represent its inputs are called
    _____
    .
    Hint

    These names are written in the function definition's parentheses.

    Answer

    parameters

    Explanation

    Parameters are the names in a function definition that represent the inputs it accepts; those inputs are supplied as arguments when calling it.

  34. 34
    The information supplied to a function when it is called is called its
    _____
    .
    Hint

    These are the actual input values given to a function call.

    Answer

    arguments

    Explanation

    Arguments are the information supplied to a function when it is called, usually in parentheses.

  35. 35
    Python uses
    _____
    to indicate which lines belong to a function's body or another code block.
    Hint

    The spaces at the start of a line indicate its position within a code block.

    Answer

    indentation

    Explanation

    Python uses indentation to show which lines belong to a function or other hierarchical code block.

  36. 36
    The Python keyword that makes a function provide a result for later use is
    _____
    .
    Hint

    Use this keyword when a function should provide a result to the calling code.

    Answer

    return

    Explanation

    The return keyword sends a function's result back for later use rather than merely printing it.

  37. 37
    Defining code once and using it many times without rewriting it is called
    _____
    .
    Hint

    This practice avoids recreating the same code for repeated tasks.

    Answer

    reusability

    Explanation

    Reusability means defining code once and using it many times without rewriting it.

  38. 38
    The ability to write code in separate components that work together and can be reused is
    _____
    .
    Hint

    This organization divides code into reusable components.

    Answer

    modularity

    Explanation

    Modularity means writing code as separate components that work together and can be reused in other programs.

  39. 39
    Restructuring code while preserving its original functionality is called
    _____
    .
    Hint

    This process improves code organization without changing what the code does.

    Answer

    refactoring

    Explanation

    Refactoring restructures code while maintaining its original functionality.

  40. 40
    Code written so it is readable and its purpose is clear is called
    _____
    .
    Hint

    This code communicates its purpose through its structure and readability.

    Answer

    self-documenting code

    Explanation

    Self-documenting code is readable and makes its purpose clear through choices such as meaningful names and concise expressions.

  41. 41
    Notes in code that explain a programmer's workflow for human readers are called
    _____
    .
    Hint

    These explanatory notes help collaborators understand the code.

    Answer

    comments

    Explanation

    Comments explain code for human readers, and Python ignores text after the comment marker on that line.

  42. 42
    The string at the beginning of a function body that describes its behavior, arguments, and return values is a
    _____
    .
    Hint

    This function-level string documents what a function does and its inputs and outputs.

    Answer

    docstring

    Explanation

    A docstring appears at the beginning of a function body and summarizes its behavior, arguments, and return values.

  43. 43
    Although consistent indentation is the key rule, Python code commonly uses
    _____
    for indentation.
    Hint

    This conventional indentation width improves code readability.

    Answer

    four spaces

    Explanation

    Python permits consistent indentation choices, but four spaces is commonly preferred for readability.

  44. 44
    A set of instructions for solving a problem or accomplishing a task is an
    _____
    .
    Hint

    A recipe is an everyday example of this organized set of steps.

    Answer

    algorithm

    Explanation

    An algorithm is a set of instructions for solving a problem or accomplishing a task.

  45. 45
    Operators that compare two values and produce Boolean results are called
    _____
    .
    Hint

    These operators test relationships such as equality or greater-than.

    Answer

    comparators

    Explanation

    Comparators compare two values and produce Boolean results, such as whether one value is greater than another.

  46. 46
    The operators and, or, and not are examples of
    _____
    .
    Hint

    The words and, or, and not belong to this operator category.

    Answer

    logical operators

    Explanation

    Logical operators such as and, or, and not connect statements or invert truth values to support more complex comparisons.

  47. 47
    A combined expression returns True only when both component expressions are True if they are joined by
    _____
    .
    Hint

    This logical operator requires both conditions to hold.

    Answer

    and

    Explanation

    The and operator returns True only when both expressions are True.

  48. 48
    A combined expression is True when at least one condition is True if the conditions are joined by
    _____
    .
    Hint

    This logical operator needs at least one true condition.

    Answer

    or

    Explanation

    The or operator returns True when either expression is True, and is False only when both are False.

  49. 49
    The logical operator that inverts the truth value of an expression is
    _____
    .
    Hint

    This logical operator turns True into False and False into True.

    Answer

    not

    Explanation

    The not operator inverts the truth value of the expression that follows it.

  50. 50
    A program's ability to alter its execution sequence based on conditions is called
    _____
    .
    Hint

    This programming concept lets a script choose among execution paths.

    Answer

    branching

    Explanation

    Branching allows a program to alter its execution sequence based on conditions.

  51. 51
    The body of an
    _____
    statement executes only when its condition evaluates to True.
    Hint

    This reserved keyword introduces a condition that controls a code block.

    Answer

    if

    Explanation

    An if statement executes its indented body only when its condition evaluates to True.

  52. 52
    The keyword that introduces code to run when a preceding if condition is False is
    _____
    .
    Hint

    This reserved keyword provides an alternative path when a preceding condition fails.

    Answer

    else

    Explanation

    An else block runs when the preceding if condition is False; it aligns at the same indentation level as its corresponding if.

  53. 53
    Python uses
    _____
    to test an additional condition when earlier conditions were not True.
    Hint

    This shortened keyword means 'else if.'

    Answer

    elif

    Explanation

    Elif adds another condition to test when the preceding conditions are not True, avoiding unnecessary nested if-else blocks.

  54. 54
    The operator that returns the remainder of a division is the
    _____
    operator.
    Hint

    This operator is commonly used to test whether a number is even.

    Answer

    modulo

    Explanation

    The modulo operator returns the remainder after one number is divided by another.

  55. 55
    A single execution of a block of code in a repeated process is an
    _____
    .
    Hint

    This refers to one pass through a loop's body.

    Answer

    iteration

    Explanation

    An iteration is one execution of a block of code within a repeated process.

  56. 56
    An object that can be looped over is called an
    _____
    .
    Hint

    Lists, strings, and other objects that can be traversed by a loop fit this description.

    Answer

    iterable

    Explanation

    An iterable is an object whose values or items can be looped over.

  57. 57
    A
    _____
    continuously executes its body while a condition evaluates to True.
    Hint

    This loop continues according to a Boolean condition rather than a fixed sequence length.

    Answer

    while loop

    Explanation

    A while loop repeatedly executes its body as long as its condition remains true.

  58. 58
    A
    _____
    iterates over a sequence of values, one value at a time.
    Hint

    This loop is useful for processing each item in a sequence.

    Answer

    for loop

    Explanation

    A for loop iterates over a sequence of values, applying its body to each value.

  59. 59
    Giving a counter variable its starting value before a loop is called
    _____
    it.
    Hint

    Set the starting value of a variable before using it as a loop counter.

    Answer

    initialize

    Explanation

    A loop variable such as a counter should be given an initial value before a while loop checks it.

  60. 60
    Python's
    _____
    keyword exits a loop before it would otherwise finish.
    Hint

    This keyword provides an early exit from a loop.

    Answer

    break

    Explanation

    The break keyword exits a loop immediately without continuing through the remaining iterations.

  61. 61
    The Python function that generates a sequence of numbers for loops is
    _____
    .
    Hint

    This function is frequently used to supply a sequence of values to a for loop.

    Answer

    range

    Explanation

    The range function generates a sequence that starts at zero by default, increments by one, and stops before the specified endpoint.

  62. 62
    In range, the
    _____
    is excluded from the generated sequence.
    Hint

    This range parameter marks the endpoint that is not included in the generated sequence.

    Answer

    stop value

    Explanation

    The endpoint passed to range is excluded, so a loop that should include 100 uses 101 as the stop value.

  63. 63
    The range parameter that controls the size of the increment is the
    _____
    .
    Hint

    This parameter controls how far the sequence advances each time.

    Answer

    step value

    Explanation

    The step parameter determines the difference between successive values in a range, allowing increments such as ten.

  64. 64
    When iterating over a sequence of elements or records,
    _____
    are generally the readable choice.
    Hint

    Choose this loop when you have a sequence of items to process.

    Answer

    for loops

    Explanation

    For loops are appropriate for iterating over a sequence or a fixed collection of elements, such as records in a dataset.

  65. 65
    When repeating an action until a Boolean condition changes,
    _____
    are often appropriate.
    Hint

    Choose this loop when the stopping point depends on a condition changing.

    Answer

    while loops

    Explanation

    While loops suit repeated actions that should continue until a Boolean condition changes.

  66. 66
    To link two or more strings into one longer string is to
    _____
    them.
    Hint

    This operation joins pieces of text together.

    Answer

    concatenate

    Explanation

    To concatenate strings is to link or join them into a longer string, commonly using the addition operator.

  67. 67
    When concatenating strings, a blank gap must be included as a
    _____
    character in one of the strings.
    Hint

    This character creates a blank gap between words.

    Answer

    whitespace

    Explanation

    A blank space is a character, so concatenated strings contain a visible gap only if one of the strings includes whitespace.

  68. 68
    A backslash used to alter the normal behavior of a following character is an
    _____
    .
    Hint

    This character changes how the next character is interpreted.

    Answer

    escape character

    Explanation

    A backslash can change the usual behavior of a following character, such as allowing quotation marks inside a string.

  69. 69
    Because strings cannot be changed in place, they are
    _____
    .
    Hint

    This property means a data object's contents cannot be changed in place.

    Answer

    immutable

    Explanation

    Strings are immutable, so their character values cannot be changed in place; modified strings must be assigned anew.

  70. 70
    Python's system in which the first element has index zero is called
    _____
    .
    Hint

    The first position in this indexing system has the number zero.

    Answer

    zero-based indexing

    Explanation

    Python assigns index zero to the first element in a sequence, with later elements numbered from there.

  71. 71
    The string method that reports the position of the first matching character or substring is the
    _____
    .
    Hint

    This method searches a string and reports the first matching position.

    Answer

    index method

    Explanation

    A string's index method returns the position of the first occurrence of a specified character or substring.

  72. 72
    Indices that count backward from the end of a sequence are called
    _____
    .
    Hint

    These indices let you access positions from the right-hand end of a sequence.

    Answer

    negative indices

    Explanation

    Negative indices count from the end of a sequence; index negative one refers to its last element.

  73. 73
    A portion of a string extracted by selecting a range of characters is a
    _____
    .
    Hint

    This term describes a smaller portion extracted from a string.

    Answer

    string slice

    Explanation

    A string slice is a portion of a string, also known as a substring.

  74. 74
    A slice's ending index is
    _____
    , so the character at that position is not returned.
    Hint

    The endpoint of a slice is left out rather than included.

    Answer

    exclusive

    Explanation

    In a slice, the ending index is not included in the returned range.

  75. 75
    To check whether one string occurs inside another, use the keyword
    _____
    .
    Hint

    This keyword checks membership in a sequence.

    Answer

    in

    Explanation

    The in keyword tests whether a substring is contained in a string and produces a Boolean result.

  76. 76
    The string method that inserts values into designated places in a larger string is the
    _____
    .
    Hint

    This method fills placeholders in a string with supplied values.

    Answer

    format method

    Explanation

    The format method inserts specified values into designated places in a larger string, often marked with braces.

  77. 77
    Unlike strings,
    _____
    are mutable, so their elements can be modified, added, or removed.
    Hint

    This ordered collection permits in-place changes to its contents.

    Answer

    lists

    Explanation

    Lists are mutable sequences: their elements can be modified, added, or removed, unlike string characters.

  78. 78
    A positionally ordered collection of items is called a
    _____
    .
    Hint

    This collection type has elements in a defined positional order.

    Answer

    sequence

    Explanation

    A sequence is a positionally ordered collection of items; strings and lists are examples.

  79. 79
    The list method that adds an element to the end of a list is
    _____
    .
    Hint

    Use this list method to add an item at the end.

    Answer

    append

    Explanation

    The append method adds one element to the end of a list.

  80. 80
    The list method that adds an element at a specified index is
    _____
    .
    Hint

    This method takes a position and a value to place there.

    Answer

    insert

    Explanation

    The insert method takes an index and an element, placing the element at the given list position.

  81. 81
    The list method that deletes a specified element by value is
    _____
    .
    Hint

    Use this method when you know the element's value rather than its index.

    Answer

    remove

    Explanation

    The remove method deletes a specified element by value and raises a ValueError if that value is absent.

  82. 82
    The list method that removes an element at a given index is
    _____
    .
    Hint

    This method removes an item using its position and can return that item.

    Answer

    pop

    Explanation

    The pop method extracts and removes a list element at a given index.

  83. 83
    An immutable sequence that can contain elements of any data type is a
    _____
    .
    Hint

    This sequence is like a list but its elements cannot be changed in place.

    Answer

    tuple

    Explanation

    A tuple is an immutable sequence that can contain elements of any data type.

  84. 84
    Assigning the elements of a tuple to separate variables is called
    _____
    a tuple.
    Hint

    This process separates the components of a sequence into individual names.

    Answer

    unpacking

    Explanation

    Unpacking assigns the elements of a tuple to separate variables.

  85. 85
    A Python dictionary stores a collection of
    _____
    .
    Hint

    Each dictionary entry connects a lookup label to its associated data.

    Answer

    key-value pairs

    Explanation

    A dictionary stores data as key-value pairs, letting a key provide access to its associated value.

  86. 86
    The keys in a Python dictionary must be
    _____
    .
    Hint

    Keys need this property so their identity remains stable.

    Answer

    immutable

    Explanation

    Dictionary keys must be immutable; lists, sets, and dictionaries cannot serve as keys, while strings, numbers, and tuples can.

  87. 87
    Because dictionaries are
    _____
    , they are accessed by keys rather than positional indices.
    Hint

    This property means entries should not be accessed by their position.

    Answer

    unordered

    Explanation

    Dictionaries are unordered in the described model, so their entries are accessed by keys rather than positional indices.

  88. 88
    The dictionary method that retrieves only a dictionary's lookup labels is
    _____
    .
    Hint

    This dictionary method returns the lookup labels rather than their associated data.

    Answer

    keys

    Explanation

    The keys method retrieves a dictionary's keys, while values retrieves values and items retrieves both.

  89. 89
    A Python collection of unique, unordered elements is a
    _____
    .
    Hint

    This collection automatically keeps only one occurrence of each element.

    Answer

    set

    Explanation

    A set contains unique, unordered elements; its elements are immutable, while the set itself is mutable.

  90. 90
    The set operation that finds elements shared by two sets is their
    _____
    .
    Hint

    This set operation returns the overlap between collections.

    Answer

    intersection

    Explanation

    The intersection of two sets contains elements shared by both.

  91. 91
    The set operation that returns all elements from both sets is their
    _____
    .
    Hint

    This operation combines the members of both collections.

    Answer

    union

    Explanation

    The union contains all elements from both sets, with duplicates represented only once.

  92. 92
    The set operation that finds elements in one set but not the other is the
    _____
    .
    Hint

    This operation identifies what is in one set but absent from another.

    Answer

    difference

    Explanation

    The difference contains elements present in one set but not in the other; its result depends on the order of subtraction.

  93. 93
    The set operation that returns elements not shared by the two sets is the
    _____
    .
    Hint

    This operation returns the elements that do not overlap between the two sets.

    Answer

    symmetric difference

    Explanation

    The symmetric difference contains elements found in either set but not shared by both.

  94. 94
    A compact construct that creates a new list from values in an existing list is a
    _____
    .
    Hint

    This concise construct writes a list-building loop in a compact, reversed-looking form.

    Answer

    list comprehension

    Explanation

    A list comprehension creates a new list from an existing iterable using a compact expression that combines a computation and a for clause.

  95. 95
    The Python library known for multidimensional arrays and high-performance numerical computation is
    _____
    .
    Hint

    This library's name abbreviates Numerical Python.

    Answer

    NumPy

    Explanation

    NumPy supplies multidimensional array and matrix structures and functions for numerical computation.

  96. 96
    Performing operations on multiple components of a data object at the same time is called
    _____
    .
    Hint

    This approach operates on multiple data elements simultaneously rather than one at a time.

    Answer

    vectorization

    Explanation

    Vectorization performs operations on multiple components of a data object at the same time, often improving speed and memory efficiency.

  97. 97
    The standard alias used for NumPy in Python code is
    _____
    .
    Hint

    This common two-letter alias is used after importing NumPy.

    Answer

    np

    Explanation

    The standard alias for NumPy is np, which shortens code and is familiar to other users.

  98. 98
    NumPy's N-dimensional array data structure is abbreviated
    _____
    .
    Hint

    This is the name for NumPy's central array object.

    Answer

    ndarray

    Explanation

    The NumPy array data object is called an N-dimensional array, abbreviated ndarray.

  99. 99
    All elements of a NumPy array are required to have the
    _____
    .
    Hint

    Array elements must be consistent with respect to this property.

    Answer

    same data type

    Explanation

    An ndarray requires all its elements to share a data type; NumPy may coerce mixed values to a common type if possible.

  100. 100
    The NumPy attribute used to inspect an array's dimensions is its
    _____
    .
    Hint

    This attribute describes an array's dimensions.

    Answer

    shape

    Explanation

    The shape attribute reports the dimensions of an array or dataframe, such as its number of rows and columns.

  101. 101
    The NumPy attribute that reports an array's number of dimensions is
    _____
    .
    Hint

    This attribute tells how many dimensions an array has.

    Answer

    ndim

    Explanation

    The ndim attribute reports the number of dimensions in a NumPy array.

  102. 102
    The Python library built on NumPy that is designed for tabular data analysis is
    _____
    .
    Hint

    This library is especially useful for working with tables of rows and columns.

    Answer

    pandas

    Explanation

    Pandas is a library built on NumPy for manipulating and analyzing tabular data.

  103. 103
    A two-dimensional, labeled pandas structure with rows and columns is a
    _____
    .
    Hint

    This pandas object is similar to a spreadsheet or SQL table.

    Answer

    dataframe

    Explanation

    A pandas DataFrame is a two-dimensional, labeled structure with rows and columns that can hold multiple data types.

  104. 104
    A one-dimensional, labeled array in pandas is a
    _____
    .
    Hint

    This is the one-dimensional core pandas object.

    Answer

    series

    Explanation

    A pandas Series is a one-dimensional, labeled array, often used to represent a DataFrame row or column.

  105. 105
    A plaintext file format that separates values with commas is called
    _____
    .
    Hint

    This common file format separates values with commas.

    Answer

    CSV

    Explanation

    CSV means comma-separated values and describes a plaintext format that uses commas to separate values.

  106. 106
    The standard alias used for pandas in Python code is
    _____
    .
    Hint

    This two-letter abbreviation is conventionally used when importing pandas.

    Answer

    pd

    Explanation

    The standard alias for pandas is pd.

  107. 107
    The pandas indexer for selecting by integer position is
    _____
    .
    Hint

    Use this indexer when selecting by numerical position.

    Answer

    iloc

    Explanation

    Pandas iloc selects rows and columns using integer-location-based positions.

  108. 108
    The pandas indexer for selecting rows and columns by label is
    _____
    .
    Hint

    Use this indexer when selecting by labels rather than integer positions.

    Answer

    loc

    Explanation

    Pandas loc selects rows and columns by their labels or names.

  109. 109
    The pandas filtering technique that retains rows matching True values in a Boolean condition is
    _____
    .
    Hint

    This filtering technique overlays True/False results on rows to select data.

    Answer

    Boolean masking

    Explanation

    Boolean masking filters a DataFrame by applying a Boolean condition and retaining rows whose mask values are True.

  110. 110
    In pandas Boolean filtering, the symbol used to combine conditions with logical 'and' is the
    _____
    .
    Hint

    This symbol joins conditions when both must be satisfied.

    Answer

    ampersand

    Explanation

    In pandas Boolean conditions, the ampersand represents logical and; each condition should be parenthesized.

  111. 111
    The pandas method that groups rows based on values in selected columns is
    _____
    .
    Hint

    This method organizes rows into categories before aggregation.

    Answer

    groupby

    Explanation

    The pandas groupby method groups rows according to values in one or more columns so the groups can be analyzed.

  112. 112
    Applying calculations such as mean or median to groups of data is to
    _____
    the data.
    Hint

    This process summarizes grouped values using calculations.

    Answer

    aggregate

    Explanation

    The agg method applies one or more calculations, such as mean and median, to grouped data.

  113. 113
    The pandas function commonly used to combine similarly structured dataframes along an axis is
    _____
    .
    Hint

    This function links data objects together along an axis.

    Answer

    concat

    Explanation

    The pandas concat function combines dataframes vertically or horizontally, often when their formats align.

  114. 114
    In pandas, the vertical axis that extends over rows is
    _____
    .
    Hint

    This axis is the vertical direction in a DataFrame.

    Answer

    axis zero

    Explanation

    Axis zero runs vertically over rows, so concatenating along it adds new rows.

  115. 115
    The pandas function that joins dataframes using shared keys is
    _____
    .
    Hint

    This function combines tables based on a common point of reference.

    Answer

    merge

    Explanation

    Pandas merge joins dataframes horizontally by matching shared keys.

  116. 116
    Shared points of reference used to match records between dataframes are called
    _____
    .
    Hint

    These common identifiers tell a join which records correspond.

    Answer

    keys

    Explanation

    Keys are shared points of reference, such as a planet column, used to match records between dataframes.

  117. 117
    A join that includes only keys appearing in both dataframes is an
    _____
    .
    Hint

    This join keeps only the overlap between the two sets of keys.

    Answer

    inner join

    Explanation

    An inner join retains only keys that appear in both dataframes.

  118. 118
    A join that includes all keys from both dataframes is an
    _____
    .
    Hint

    This join preserves every key from both inputs.

    Answer

    outer join

    Explanation

    An outer join includes all keys from both dataframes, with missing entries represented by null values where necessary.

  119. 119
    A join that retains all keys from the left dataframe is a
    _____
    .
    Hint

    This join preserves every key from its first, or left-hand, input.

    Answer

    left join

    Explanation

    A left join retains all keys from the left dataframe and matching keys from the right.

  120. 120
    A join that retains all keys from the right dataframe is a
    _____
    .
    Hint

    This join preserves every key from its second, or right-hand, input.

    Answer

    right join

    Explanation

    A right join retains all keys from the right dataframe and matching keys from the left.

  121. 121
    The Python library for creating static, animated, and interactive visualizations is
    _____
    .
    Hint

    This visualization library supports static and interactive plots.

    Answer

    matplotlib

    Explanation

    Matplotlib is a comprehensive Python library for static, animated, and interactive visualizations.

  122. 122
    The data visualization library based on matplotlib that simplifies common plots is
    _____
    .
    Hint

    This library builds on matplotlib to simplify common visualizations.

    Answer

    seaborn

    Explanation

    Seaborn is a visualization library based on matplotlib that offers a simpler interface for common plots and graphs.

  123. 123
    Python files that contain collections of functions and global variables are called
    _____
    .
    Hint

    These files group reusable functions and other definitions.

    Answer

    modules

    Explanation

    Modules are Python files containing collections of functions and global variables, organized within packages or libraries.

  124. 124
    The Python module commonly used to generate random numbers is
    _____
    .
    Hint

    This module is useful for random number generation and sampling tasks.

    Answer

    random

    Explanation

    The random module generates random numbers and can support tasks such as selecting or shuffling elements.

  125. 125
    A dataset organized so each variable is a column, each observation a row, and each observational unit a table is a
    _____
    .
    Hint

    This dataset follows a structure that makes manipulation, modeling, and visualization easier.

    Answer

    tidy dataset

    Explanation

    A tidy dataset facilitates analysis: each variable is a column, each observation is a row, and each type of observational unit is a table.

  126. 126
    To prepare unstructured files for the portfolio scenario, the task is to
    _____
    the data.
    Hint

    These are the three main preparation actions required by the project.

    Answer

    load, clean, and structure

    Explanation

    The portfolio task asks learners to prepare unstructured files by loading, cleaning, and structuring the data for a business scenario.

  127. 127
    The document used to record the project scenario, steps, and thought process is the
    _____
    .
    Hint

    This project document captures both planning and the work process.

    Answer

    PACE strategy document

    Explanation

    The PACE strategy document records the selected scenario and documents the steps taken and the reasoning behind them.

  128. 128
    The idea of understanding through doing is called
    _____
    .
    Hint

    This learning approach emphasizes gaining understanding through practice.

    Answer

    experiential learning

    Explanation

    Experiential learning means understanding through doing, and the portfolio project provides practice applying Python skills to business cases.

  129. 129
    When communicating a technical process, a data professional should consider the knowledge and needs of the
    _____
    .
    Hint

    Tailor an explanation to the people receiving it and their level of technical knowledge.

    Answer

    audience

    Explanation

    When explaining technical work, consider who is listening, their goals, what they already know, and what they need to know.

  130. 130
    Capabilities that can be applied across organizations and industries are called
    _____
    .
    Hint

    These capabilities remain useful across different jobs, organizations, and tools.

    Answer

    transferable skills

    Explanation

    Skills such as communication, problem-solving, and managing data can apply across organizations and industries, even when tools differ.

  131. 131
    A process that continues to improve through repeated learning and refinement is
    _____
    .
    Hint

    This describes a process that can be repeated and improved over time.

    Answer

    iterative

    Explanation

    Developing as a data professional is an iterative process: skills and work can improve as new ideas and knowledge emerge.

  132. 132
    A tangible project that demonstrates Python proficiency to potential employers can be added to a professional
    _____
    .
    Hint

    This collection or showcase of work can demonstrate skills in an interview.

    Answer

    portfolio

    Explanation

    A portfolio project provides a tangible example of Python proficiency and can help candidates discuss coding challenges with potential employers.

  133. 133
    Data professionals help organizations develop insights that ultimately drive
    _____
    .
    Hint

    These organizational choices can be informed by insights derived from data.

    Answer

    business decisions

    Explanation

    Data professionals analyze and communicate insights that help teams and organizations make business decisions.

  134. 134
    The process of examining a dataset to understand it and identify patterns is called
    _____
    .
    Hint

    This early analysis helps investigate patterns and understand a dataset before deeper work.

    Answer

    exploratory data analysis

    Explanation

    The program's later work includes examining data and creating visualizations to help make information useful for decision-making.

1 of 134
Question 1 of 134

Ask anything

We've read this whole study set, so questions about it get the best answers.

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent