Using Libraries

Recap and Feedback


In this part, the study log crossed an important boundary. You did not stop writing code, but you started writing more code that uses existing tools deliberately. That is a real programming skill.

The first idea was library vocabulary: built-ins, modules, packages, libraries, and APIs. The exact words sometimes overlap in practice, but the distinction helps: Python syntax gives you the language, built-ins are always available, standard-library modules come with Python, and third-party packages are installed separately.

The second idea was imports and namespaces. import math gives you math.sqrt; from math import sqrt gives you sqrt; import pandas as pd gives you the conventional pandas alias. These choices shape how readable the rest of the file is.

The third idea was standard-library leverage. math, random, and datetime are not huge frameworks. They are focused tools. You practiced using them while keeping helpers testable and keeping dates as real date values when doing date logic.

The fourth idea was third-party setup. Pandas and NumPy are not part of Python’s standard library, so they must be available in the Python environment running your program. The most important habit is to use the same Python interpreter for installing and running: python -m pip install ..., then python your_file.py.

The fifth idea was table-shaped data. NumPy introduced operations over whole arrays. Pandas extended that idea to DataFrames: columns, row filters, group summaries, sorting, and date conversion. You used pandas to express summaries you had already written manually earlier in the course.

The sixth idea was AI-assisted library work. AI assistants can help you find pandas patterns, but specific library calls still need to be checked against your installed library, your DataFrame columns, and small examples whose output you can predict.

Recap Quiz

The recap quiz below is a short sequence of questions drawn from the main ideas of this part. Complete it before the feedback form.

Feedback

Next, please take a moment to reflect on your work in this part and provide feedback. Your input helps us improve the course materials.

A few questions worth thinking about as you reflect:

  1. Which library concept felt most natural?
  2. Which library concept still feels uncertain?
  3. Did pandas summaries feel clearer or less clear than the loop versions?
  4. Did installation or environment setup create friction?

Reflection and feedback

0 / 5 points

Consider the following statements and answer them based on your experiences from studying the materials and working on the assignments in this part. When answering the numeric statements, answer them so that value 1 means that you strongly disagree with the statement, and value 7 means that you strongly agree with the statement. Please be as honest as possible when answering. The feedback will be used to improve the course.

Looking Ahead

In Data Visualization, the study log moves from textual summaries to visual summaries. You will use the table-shaped data from pandas as the input for charts whose meaning you can verify against the underlying summaries.

The AI thread shifts too. The question will not just be whether AI-suggested visualization code runs, but whether the suggested chart actually fits the data and the message.