Python Data Science Fundamentals Lecture Notes

0.0(0)
Studied by 0 people
call kaiCall Kai
Locked
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
GameKnowt Play
Card Sorting

1/55

flashcard set

Earn XP

Description and Tags

Comprehensive vocabulary flashcards covering Python distributions, data types, string operations, control flow, functions, error handling, and core data science libraries based on Unit 1 through Unit 6 lecture notes.

Last updated 2:55 PM on 7/30/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

56 Terms

1
New cards

Anaconda distribution

One of the most popular Python distributions tailored specifically for data science and machine learning, which includes libraries such as NumPy, SciPy, and Pandas.

2
New cards

NumPy

A foundational library built for high-efficiency computation on large datasets and multi-dimensional arrays, often used for statistical analysis.

3
New cards

SciPy

A library used for scientific computing tasks such as linear algebra, interpolation, and signal or image processing.

4
New cards

Pandas

A library designed for manipulating data in numerical tables and time-series formats, identified by its core structure, the DataFrame.

5
New cards

Enthought

A library specialized in data visualization and manipulation, mentioned as an alternative to the Anaconda distribution.

6
New cards

Reserved word

An existing built-in command in Python, such as print\text{print}, that cannot be used as a variable name because it has a predefined job.

7
New cards

Snake Case

The style convention for multi-word variables in Python where words are written in lowercase and separated using an underscore (_\_).

8
New cards

Literal

A raw data value represented directly in source code that means exactly and explicitly what it says on the screen without calculation or transformation.

9
New cards

int Data Type

Represents any positive, negative, or zero whole number that does not contain a fraction or a decimal point.

10
New cards

float Data Type

Represents numerical values that contain a decimal point or fractional part, used for scientific calculations or measurements.

11
New cards

Scientific Notation (e/Ee / E)

A designation where ee or EE stands for exponent (base 1010); the number following it indicates how many times to multiply by 1010 (for positive exponents) or 10110^{-1} (for negative exponents).

12
New cards

Complex Number

In Python, these use the complex\text{complex} data type and are written in the format a+bJa + bJ, where aa is the real part and bb is the imaginary part representing 1\sqrt{-1}.

13
New cards

Hexadecimal

A Base 1616 number system using digits 00-99 and letters AA-FF, identified in Python by the prefix 0x0x.

14
New cards

Octal

A Base 88 number system using digits 00-77, identified in Python by the prefix 0o0o.

15
New cards

Modulo

The arithmetic operator represented by the percent symbol (%\%) that returns the remainder of the division of two numbers.

16
New cards

int() conversion

A function that truncates a floating-point number by chopping off everything after the decimal point to return an integer.

17
New cards

Escape Character

The backslash (\) which tells Python to treat the next character in a special way rather than as normal text.

18
New cards

Escape Sequence

The combination of a backslash and a specific character, such as \n for a new line or \t for a tab, used to insert special characters in strings.

19
New cards

len()

A string operation that calculates the total number of characters in a string, including spaces and punctuation.

20
New cards

.index()

A string method used to find the numerical position (index) of the first matching character, starting the count at 00.

21
New cards

Substring Operation

The process of extracting a smaller piece of text from a larger string using square brackets ([][ ]) and index parameters.

22
New cards

Frozenset

An immutable version of a set created with the frozenset()\text{frozenset()} keyword; its contents cannot be changed after creation.

23
New cards

List

An ordered collection data type created with square brackets ([][ ]) that allows duplicate values and is optimized for looping and manipulation.

24
New cards

File Lock

A built-in safety mechanism that prevents multiple applications from editing or writing to the same file simultaneously to prevent data corruption.

25
New cards

Assignment Operators

Operators such as == that assign specific values to variables, or shortcut operators like +=+= and =*= that perform arithmetic and update the variable instantly.

26
New cards

PEMDAS

An acronym for the mathematical Order of Operations: Parentheses, Exponents, Multiplication, Division, Addition, and Subtraction.

27
New cards

Statement

An instruction or full line of code that the Python interpreter executes to take an action.

28
New cards

Expression

A specific section of code that the Python interpreter evaluates to produce a single value.

29
New cards

Comparison Operators

Symbols such as ====, !=!=, and >> used to compare values, resulting in a Boolean value.

30
New cards

break

A loop control statement that completely and permanently terminates the loop.

31
New cards

continue

A loop control statement that skips only the active iteration and jumps back to the start of the loop for the next round.

32
New cards

Comprehensions

A shorthand syntax using square brackets ([x for x in data][x \text{ for } x \text{ in data}]) to create complete collections instantly in memory.

33
New cards

Iterators

Data structures that traverse streams sequentially and generate elements one-at-a-time (lazily) using iter()\text{iter()} and next()\text{next()} functions.

34
New cards

Generator Expressions

A 'middle ground' between comprehensions and iterators that uses parentheses ((x for x in data)(x \text{ for } x \text{ in data})) to execute lazily and save memory.

35
New cards

for Loop

A loop used to repeat code a specific, known number of times or to iterate through a sequence.

36
New cards

while Loop

A loop used to repeat a block of code continuously as long as a specific condition remains true.

37
New cards

Function Definition

The phase of creating a reusable block of code using the def\text{def} keyword, parentheses, and a colon.

38
New cards

Scope

The visibility and definition of variables or functions within code, determining where data can be accessed or modified.

39
New cards

Parameters

The placeholder variables listed inside the parentheses when defining a function.

40
New cards

Arguments

The actual values or data passed into a function when it is called.

41
New cards

return

A keyword used to pass calculated data back from a function to the program, which also immediately terminates the function's execution.

42
New cards

Syntax Error

A grammar mistake in the code (e.g., a missing colon) that prevents the program from starting because Python cannot understand the instructions.

43
New cards

Exception

A runtime crash occurs when perfectly written code attempts an impossible operation, such as dividing by 00.

44
New cards

try and except

Code blocks used to handle exceptions gracefully, where the 'try' block contains risky code and the 'except' block provides backup code if an error occurs.

45
New cards

raise

A keyword used to manually trigger an exception when program logic is violated, even if the code is technically valid.

46
New cards

finally

A block attached to a try/except statement that always runs regardless of whether an error occurred, often used for cleanup tasks like closing files.

47
New cards

Logging Severity Levels

A hierarchy of recorded messages: DEBUG, INFO, WARNING, ERROR, and CRITICAL.

48
New cards

Module

A Python file ending in .py.py that contains pre-written code—including functions and variables—that can be reused by other programs via the import\text{import} statement.

49
New cards

Docstring

A short description created using triple quotes ("""...""""""...""") immediately inside a function to explain what the function does.

50
New cards

Matplotlib

A flexible data visualization library used to turn raw data into visual graphics like histograms, scatterplots, and line graphs.

51
New cards

Interpolation

The ability provided by SciPy to mathematically estimate the value of a point that falls between two known data points.

52
New cards

DataFrame

The core feature of Pandas; it is a two-dimensional table that organizes data into rows and columns, similar to a spreadsheet.

53
New cards

Scikit-Learn

Python’s primary library for machine learning, providing algorithms for classification, regression, and clustering.

54
New cards

Classification

A machine learning technique where an algorithm learns to assign new data into specific categories or groups.

55
New cards

Regression

A machine learning technique that analyzes inputs to predict a specific output or future numerical value.

56
New cards

Clustering

A machine learning technique where an algorithm automatically groups raw data based on shared attributes or hidden patterns.