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

Study methods

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

Data Analysis with Python

  • 106Unfamiliar
  • 0Learning
  • 0Familiar
  • 0Mastered
Topic: Analysis Foundations
Data analysis is the process of inspecting, cleansing, transforming, and modeling data to discover useful information, form conclusions, and support
.

106 questions

  1. 1
    Data analysis is the process of inspecting, cleansing, transforming, and modeling data to discover useful information, form conclusions, and support
    _____
    .
    Hint

    Think about the practical choices that findings can inform.

    Answer

    decision making

  2. 2
    The first part of data analysis commonly involves gathering data, cleaning it, and
    _____
    it for further analysis.
    Hint

    This step changes data into a form suitable for later work.

    Answer

    transforming

  3. 3
    In the tutorial’s terminology, modeling data means adapting real-life scenarios to information systems, often using
    _____
    statistics.
    Hint

    This kind of statistics helps assess patterns or models in data.

    Answer

    inferential

  4. 4
    The main purpose of turning data into information is to uncover meaningful patterns or
    _____
    .
    Hint

    These are unusual findings that may merit investigation.

    Answer

    anomalies

  5. 5
    An example of information drawn from purchase data is the finding that Pop-Tarts sell better on
    _____
    .
    Hint

    The example identifies one day of the week as having stronger sales.

    Answer

    Tuesdays

  6. 6
    A data analysis project should provide evidence of findings and communicate them through readable reports or
    _____
    .
    Hint

    These visual summaries can present information for different audiences.

    Answer

    dashboards

  7. 7
    Different groups, such as marketing, sales, and accounting, may need different reports or different levels of
    _____
    from the same analysis.
    Hint

    Some audiences need a broad summary, while others need more specifics.

    Answer

    detail

  8. 8
    The tutorial groups ready-to-use commercial products such as Excel and Tableau as
    _____
    tools.
    Hint

    These are products that can be purchased and used out of the box.

    Answer

    managed

  9. 9
    The tutorial calls programming languages and open-source libraries such as Python and R
    _____
    tools.
    Hint

    These tools are not sold as a single vendor’s packaged product.

    Answer

    open

  10. 10
    A key limitation of closed products such as Excel or Tableau is that their scope is
    _____
    .
    Hint

    Unlike a general-purpose programming language, a closed product has boundaries set by its features.

    Answer

    limited

  11. 11
    Compared with a packaged analysis tool, Python and its data tools provide greater
    _____
    to handle varied tasks.
    Hint

    This advantage lets a programmer adapt the approach to different data sources and requirements.

    Answer

    flexibility

  12. 12
    The main learning disadvantage of programming languages compared with point-and-click tools is that learners must first learn the basics of
    _____
    .
    Hint

    This skill takes time to develop before using the language effectively.

    Answer

    coding

  13. 13
    The tutorial favors Python partly because it is simple, intuitive, readable, free, and
    _____
    source.
    Hint

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

    Answer

    open

  14. 14
    Python’s large ecosystem includes thousands of
    _____
    for many different tasks.
    Hint

    These reusable packages extend what the language can do.

    Answer

    libraries

  15. 15
    The tutorial notes that major institutions rely on Python, which helps make the language less likely to
    _____
    away.
    Hint

    The phrase describes a technology disappearing from use.

    Answer

    go

  16. 16
    The tutorial prefers Python over R for getting started partly because Python is easier to learn and more
    _____
    in its libraries and tools.
    Hint

    The contrast is with a language especially strong in statistical functions.

    Answer

    general

  17. 17
    R may be especially worth exploring for people in highly technical disciplines because it has a large library of
    _____
    functions.
    Hint

    These functions support analysis of data and statistical relationships.

    Answer

    statistical

  18. 18
    The two especially important visualization libraries highlighted for the Python data stack are matplotlib and
    _____
    .
    Hint

    The second name is written this way in the tutorial and is commonly known as Seaborn.

    Answer

    Seabourn

  19. 19
    The tutorial identifies
    _____
    as the main Python library for data analysis.
    Hint

    It helps read, manipulate, and analyze tabular data.

    Answer

    pandas

  20. 20
    The tutorial describes NumPy as a library for numeric processing and calculations with
    _____
    .
    Hint

    Its focus is numerical rather than general-purpose text handling.

    Answer

    numbers

  21. 21
    The tutorial says a data analyst who learns Python and SQL may be better paid than one who does not know these
    _____
    tools.
    Hint

    These tools let analysts work with data through code and queries.

    Answer

    programming

  22. 22
    Python is useful for transferring data analysis processes between computers or to the cloud with little
    _____
    .
    Hint

    This refers to extra effort or cost involved in moving a process.

    Answer

    overhead

  23. 23
    The data analysis process begins by identifying where data comes from and then
    _____
    it from sources such as databases, files, or web APIs.
    Hint

    This is the step of obtaining data before cleaning it.

    Answer

    collecting

  24. 24
    After collection, analysts clean data; data obtained through web scraping may require a more
    _____
    cleaning process than data from a well-maintained database.
    Hint

    The word describes work that is more laborious and time-consuming.

    Answer

    tedious

  25. 25
    Once data is clean, analysts rearrange and reshape it, for example by transforming fields or
    _____
    tables.
    Hint

    This operation combines related tabular data.

    Answer

    merging

  26. 26
    The purpose of reshaping and rearranging data is to make it ready for the next step, the process of
    _____
    .
    Hint

    This is where patterns are extracted from prepared data.

    Answer

    analysis

  27. 27
    Statistical analysis is fundamental when searching prepared data for patterns, trends, and
    _____
    .
    Hint

    These are deviations or unusual observations in the data.

    Answer

    anomalies

  28. 28
    In a data science project, the analysis process may lead to implementing
    _____
    models.
    Hint

    These models learn patterns from data to make predictions or decisions.

    Answer

    machine learning

  29. 29
    When focusing strictly on data analysis, the results are commonly communicated through reports to support
    _____
    making.
    Hint

    Analysis is intended to help people choose a course of action.

    Answer

    decision

  30. 30
    In practice, data analysis is better represented as a cycle than as a straight line because analysts often move
    _____
    between steps.
    Hint

    The process may revisit earlier stages instead of proceeding only once in order.

    Answer

    back and forth

  31. 31
    Compared with analysts, data scientists are described as usually having stronger programming and
    _____
    skills.
    Hint

    These quantitative skills support machine learning and technical processes.

    Answer

    math

  32. 32
    Data analysts are described as having particular strengths in communication, report writing, and
    _____
    abilities.
    Hint

    This skill helps communicate what findings mean to an audience.

    Answer

    storytelling

  33. 33
    For small data sets, point-and-click tools provide a constant visual reference, but this approach becomes less useful as the number of
    _____
    grows.
    Hint

    A data set becomes difficult to inspect visually when it contains too many rows.

    Answer

    records

  34. 34
    Python users work with a mental understanding of a data set’s shape and statistical properties rather than constantly
    _____
    at every row.
    Hint

    The contrast is with visually scanning a spreadsheet.

    Answer

    looking

  35. 35
    A Jupyter Notebook is an interactive, real-time environment for exploring data and performing data
    _____
    .
    Hint

    It lets users issue commands and see results immediately.

    Answer

    analysis

  36. 36
    A Jupyter Notebook is made up of a sequence of
    _____
    .
    Hint

    Each unit can contain code or formatted text.

    Answer

    cells

  37. 37
    A notebook cell can contain executable code or
    _____
    text.
    Hint

    This lightweight format supports headings, links, and other document formatting.

    Answer

    markdown

  38. 38
    Markdown in a notebook can format a report that can later be exported as a PDF or an
    _____
    page.
    Hint

    This is the standard format used to display structured content on the web.

    Answer

    HTML

  39. 39
    JupyterLab is described as an evolution of the notebook interface that adds features such as a file tree view and
    _____
    tools.
    Hint

    These tools help manage changes to files and code.

    Answer

    Git

  40. 40
    Jupyter is a free and
    _____
    source ecosystem of tools.
    Hint

    This means people can use and develop the project openly.

    Answer

    open

  41. 41
    Notebook cells display execution numbers so users can tell the order in which code was
    _____
    .
    Hint

    The numbering preserves execution history even if cells are moved.

    Answer

    executed

  42. 42
    In notebook command mode, pressing A creates a new cell
    _____
    the selected cell.
    Hint

    The shortcut places the new cell before the current one.

    Answer

    above

  43. 43
    In notebook command mode, pressing B creates a new cell
    _____
    the selected cell.
    Hint

    The shortcut places the new cell after the current one.

    Answer

    below

  44. 44
    In notebook command mode, the shortcut for deleting a cell is pressing D
    _____
    .
    Hint

    The deletion shortcut uses a repeated key press.

    Answer

    twice

  45. 45
    The two main Jupyter Notebook modes are command mode and
    _____
    mode.
    Hint

    In this mode, typed characters are added to the cell’s content.

    Answer

    edit

  46. 46
    Pressing Escape switches a notebook cell from edit mode to
    _____
    mode.
    Hint

    This mode interprets keys as notebook commands rather than text.

    Answer

    command

  47. 47
    Pressing Enter while a cell is selected in command mode switches it into
    _____
    mode.
    Hint

    This mode lets the user modify the cell’s contents.

    Answer

    edit

  48. 48
    Pressing M in notebook command mode changes the cell type to
    _____
    .
    Hint

    This cell type is used for formatted text rather than executable Python.

    Answer

    Markdown

  49. 49
    Pressing Y in notebook command mode changes the cell type to
    _____
    code.
    Hint

    This is the language used for code in the tutorial’s notebook.

    Answer

    Python

  50. 50
    To execute a cell and keep it selected, use Ctrl plus
    _____
    .
    Hint

    This key is also used to enter edit mode.

    Answer

    Return

  51. 51
    To execute a cell and move the selection to the next cell, use Shift plus
    _____
    .
    Hint

    This key combination is useful for running cells in sequence.

    Answer

    Return

  52. 52
    A NumPy array stores its elements in a consistent data type, which allows NumPy to use memory and computation more
    _____
    .
    Hint

    Uniform element types support optimized numerical operations.

    Answer

    efficiently

  53. 53
    Unlike a regular Python list, a NumPy array can store its elements in
    _____
    positions in memory.
    Hint

    The elements are placed next to one another rather than scattered.

    Answer

    contiguous

  54. 54
    The number of decimal values representable with nnn bits is 2n2^n2n; this follows from the fact that each bit can be either zero or
    _____
    .
    Hint

    Binary uses two possible symbols for each bit.

    Answer

    one

  55. 55
    A data type such as NumPy’s integer type lets an analyst control how many bits are used to store an
    _____
    .
    Hint

    Choosing a smaller or larger numeric type changes its storage size.

    Answer

    integer

  56. 56
    NumPy arrays are accessed using zero-based indexing, so the first element is at position
    _____
    .
    Hint

    This is the same indexing convention used by Python lists.

    Answer

    zero

  57. 57
    NumPy supports selecting several specified positions at once through
    _____
    indexing.
    Hint

    This allows a selection such as the first, third, and last elements.

    Answer

    multi

  58. 58
    A NumPy array’s shape reports the sizes of its
    _____
    .
    Hint

    For a matrix, it reports the number of rows and columns.

    Answer

    dimensions

  59. 59
    A NumPy array’s ndim attribute reports its number of
    _____
    .
    Hint

    A vector has one, a matrix has two, and a cube has three.

    Answer

    dimensions

  60. 60
    A NumPy array’s size attribute gives its total number of
    _____
    .
    Hint

    For example, a matrix with two rows and three columns has six.

    Answer

    elements

  61. 61
    In a two-dimensional NumPy array, an index such as [row, column] selects an element by specifying its
    _____
    .
    Hint

    Each coordinate refers to a separate direction in the array.

    Answer

    dimensions

  62. 62
    NumPy vectorized operations apply an operation such as adding a scalar to
    _____
    element of an array.
    Hint

    The operation is expressed once but applies throughout the array.

    Answer

    each

  63. 63
    By default, most NumPy arithmetic operations leave the original array unchanged and return a
    _____
    array.
    Hint

    This behavior is described as immutable.

    Answer

    new

  64. 64
    A Boolean array can be used to filter NumPy data by marking desired elements as True and unwanted elements as
    _____
    .
    Hint

    This value tells the selection to exclude an element.

    Answer

    False

  65. 65
    When NumPy compares each array element with a condition, such as whether it is greater than a threshold, the result is a
    _____
    array.
    Hint

    Each result indicates whether one element meets the condition.

    Answer

    Boolean

  66. 66
    Pandas has two main data structures: the Series and the
    _____
    .
    Hint

    This structure resembles a spreadsheet with rows and columns.

    Answer

    data frame

  67. 67
    A pandas Series is an ordered sequence of elements backed by a NumPy
    _____
    .
    Hint

    This underlying structure supports efficient numeric processing.

    Answer

    array

  68. 68
    Unlike a plain Python list, a pandas Series can associate each value with a named or labeled
    _____
    .
    Hint

    This lets users retrieve a value by a meaningful label rather than only by position.

    Answer

    index

  69. 69
    A pandas Series combines ordered sequence behavior with label-based lookup, somewhat like a list and a
    _____
    .
    Hint

    This other structure retrieves values using keys.

    Answer

    dictionary

  70. 70
    In pandas, .loc selects data using index
    _____
    .
    Hint

    For example, it can retrieve a row whose index is a country name.

    Answer

    labels

  71. 71
    In pandas, .iloc selects data using integer
    _____
    .
    Hint

    It can retrieve the first or last row regardless of its label.

    Answer

    positions

  72. 72
    In label-based pandas slicing with .loc, the upper endpoint of a slice is
    _____
    .
    Hint

    This differs from the usual upper-bound behavior of Python slicing.

    Answer

    included

  73. 73
    A pandas data frame can be understood as a collection of Series, typically one for each
    _____
    .
    Hint

    Each vertical set of values has its own name and data type.

    Answer

    column

  74. 74
    The pandas info method summarizes a data frame’s columns, types, and counts of non-null
    _____
    .
    Hint

    This information helps reveal missing data.

    Answer

    values

  75. 75
    The pandas describe method provides summary statistics for
    _____
    columns.
    Hint

    Its output can include mean, standard deviation, minimum, and maximum.

    Answer

    numeric

  76. 76
    In a pandas data frame, using the data frame name followed by a column label selects that
    _____
    .
    Hint

    This is different from using .loc or .iloc to select rows.

    Answer

    column

  77. 77
    Pandas aligns Series and data frame values by their matching
    _____
    when performing operations.
    Hint

    This matching lets separately structured data combine correctly.

    Answer

    labels

  78. 78
    When assigning a Series to a data frame column, pandas matches values by index and fills unmatched positions with a missing-value marker such as
    _____
    .
    Hint

    This marker represents a value that is not available.

    Answer

    NaN

  79. 79
    A pandas operation that returns a changed data frame usually leaves the original unchanged unless the result is assigned back, because the operation is
    _____
    .
    Hint

    The returned result is separate from the original object.

    Answer

    immutable

  80. 80
    Pandas uses isna or isnull to identify
    _____
    values.
    Hint

    These methods return True where a value is absent.

    Answer

    missing

  81. 81
    Pandas uses notna or notnull to identify values that are
    _____
    .
    Hint

    These methods return True when a value is present.

    Answer

    not missing

  82. 82
    The dropna method removes missing data; by default on a data frame, it drops rows with at least one missing
    _____
    .
    Hint

    One absent entry is enough to remove the entire row under the default behavior.

    Answer

    value

  83. 83
    The fillna method can replace missing values with a chosen value, such as zero, or a statistic such as the
    _____
    .
    Hint

    This measure is the arithmetic average of the observed values.

    Answer

    mean

  84. 84
    Forward filling replaces a missing value with the previous valid value as data is traversed
    _____
    .
    Hint

    The replacement value flows from earlier observations toward later ones.

    Answer

    forward

  85. 85
    Backward filling replaces a missing value using the next valid value as data is traversed
    _____
    .
    Hint

    The replacement value flows from later observations toward earlier ones.

    Answer

    backward

  86. 86
    In a data frame, the axis setting for dropna or filling determines whether the operation proceeds by rows or
    _____
    .
    Hint

    Changing the axis changes the direction in which values are examined or filled.

    Answer

    columns

  87. 87
    The pandas replace method can correct invalid categorical entries by mapping them to the intended
    _____
    .
    Hint

    For example, inconsistent codes can be standardized to valid categories.

    Answer

    values

  88. 88
    A value may be technically valid as a number but invalid for the data’s
    _____
    ; for example, an age of 170 is implausible for a human customer.
    Hint

    This means the real-world subject area and its constraints.

    Answer

    domain

  89. 89
    The duplicated method can mark repeated records, while its keep setting determines which occurrence is treated as the
    _____
    .
    Hint

    The first, last, or all repeated occurrences can be handled differently.

    Answer

    duplicate

  90. 90
    The subset option in duplicate handling specifies which columns are used to decide whether rows count as
    _____
    .
    Hint

    Two rows may match on selected fields while differing on others.

    Answer

    duplicates

  91. 91
    Pandas string operations are accessed through the Series .str
    _____
    .
    Hint

    This prefix provides methods such as splitting, replacing, and checking for substrings.

    Answer

    attribute

  92. 92
    Because HTML tables may be formatted for people rather than machines, parsing them can require additional data
    _____
    .
    Hint

    Repeated headers or merged cells may need to be corrected after import.

    Answer

    cleaning

  93. 93
    Pandas’ plotting methods commonly use the matplotlib library to create
    _____
    .
    Hint

    These include plots such as histograms and line charts.

    Answer

    visualizations

  94. 94
    A matplotlib scatter plot can encode additional variables using features such as marker size and
    _____
    .
    Hint

    This visual property can represent a third or fourth data dimension.

    Answer

    color

  95. 95
    In the tutorial’s Python overview, Python 2 is described as deprecated in 2020, so new learners should use Python
    _____
    .
    Hint

    This is the current major version recommended in the tutorial.

    Answer

    3

  96. 96
    Python uses
    _____
    to define blocks of code instead of relying on curly braces.
    Hint

    Statements in the same block are aligned at the same level.

    Answer

    indentation

  97. 97
    A Python function definition begins with the keyword def, followed by the function name and its
    _____
    .
    Hint

    These are the inputs listed inside the parentheses.

    Answer

    parameters

  98. 98
    In Python, a function that reaches its end without an explicit return statement returns
    _____
    by default.
    Hint

    This built-in value represents the absence of a returned value.

    Answer

    None

  99. 99
    Python is dynamically typed, but it is also described in the tutorial as strongly
    _____
    .
    Hint

    The language still enforces distinctions between incompatible kinds of values.

    Answer

    typed

  100. 100
    Python strings in Python 3 support
    _____
    text by default.
    Hint

    This standard accommodates characters from many writing systems.

    Answer

    Unicode

  101. 101
    A Python list is an ordered collection that can contain values of different
    _____
    .
    Hint

    For example, one list could contain text, numbers, and Boolean values.

    Answer

    types

  102. 102
    A tuple resembles a list but is
    _____
    after it has been created.
    Hint

    Its elements cannot be added, removed, or changed in place.

    Answer

    immutable

  103. 103
    A Python dictionary maps
    _____
    to values, allowing lookup by meaningful names.
    Hint

    These identifiers are used to retrieve associated values.

    Answer

    keys

  104. 104
    A Python set keeps only
    _____
    values, making it useful for membership checks.
    Hint

    Repeated entries are not retained as separate elements.

    Answer

    unique

  105. 105
    A Python for loop commonly iterates directly over the elements of a
    _____
    .
    Hint

    Examples include lists, dictionaries, and sets.

    Answer

    collection

  106. 106
    Python handles errors using exceptions, which can be managed with a try and
    _____
    block.
    Hint

    This block runs when an error occurs in the protected code.

    Answer

    except

1 of 106
Question 1 of 106

Ask anything

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

FlashcardsQuizFill in the blanksWritten testLessonNotesPodcastContent