Data Science I with Python: Core Foundations, Tools, and Workflows

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

1/33

flashcard set

Earn XP

Description and Tags

Comprehensive practice flashcards covering VS Code setup, virtual environments, data reading, indexing, pandas transformations, NumPy fundamentals, array workflows, and single-plot data visualization.

34 Terms

1
New cards

Python Kernel

The background process that executes code cells in a Jupyter notebook and preserves defined variables and state between executions.

2
New cards

Quarto

A scientific and technical publishing system that renders Jupyter notebooks (.ipynb.ipynb) into HTML reports using their saved execution outputs.

3
New cards

Python Virtual Environment (.venv)

An isolated directory containing a specific Python interpreter and an independent set of installed packages, preventing dependency version conflicts across projects.

4
New cards

Line Magic (%)

An IPython instruction prefixed by a single percent sign that operates exclusively on a single line of a notebook cell rather than executing as Python code.

5
New cards

Cell Magic (%%)

An IPython instruction prefixed by two percent signs that must be placed on the first line of a notebook cell to modify or time the execution of the entire cell.

6
New cards

Relative Path

A file or folder path defined relative to the current working directory of the running program rather than from the root of the file system.

7
New cards

Structured Data

Data organized into a defined tabular structure where each row represents a single observation or record and each column represents a specific variable.

8
New cards

Delimiter

A character or symbol (such as a comma, semicolon, or tab) used in a plain text file to separate individual data fields within a record.

9
New cards

DataFrame

A two-dimensional, size-mutable tabular data structure in pandas with labeled axes (rows and columns) that can accommodate columns of varying data types.

10
New cards

Series

A one-dimensional labeled pandas array capable of holding data of a single data type, sharing the row index of the DataFrame from which it originates.

11
New cards

.loc

A pandas indexing operator that selects rows and columns strictly by their index and column labels (or Boolean masks), inclusive of both slice endpoints.

12
New cards

.iloc

A pandas indexing operator that selects rows and columns strictly by integer positions (00 to n−1n - 1), including the start position and excluding the stop position.

13
New cards

Boolean Mask

An array or Series of True and False values generated by evaluating a condition, used to filter and retain only the rows matching True.

14
New cards

idxmax()

A pandas Series method that returns the index label of the first occurrence of the maximum value, distinct from argmax(), which returns its integer position.

15
New cards

Automatic Alignment

The behavior in pandas where operations between DataFrames or Series automatically align data by matching index and column labels rather than by array position.

16
New cards

Pearson Correlation Coefficient

A standardized linear association metric ranging from −1-1 (perfect negative linear trend) to +1+1 (perfect positive linear trend), with 00 indicating no linear relationship.

17
New cards

Series.map()

A pandas method that transforms every element in a Series based on a dictionary, function, or Series, converting any unmapped keys to NaN.

18
New cards

Series.replace()

A pandas method that substitutes specified values using a mapping while leaving all unlisted values in the Series unchanged.

19
New cards

DataFrame.apply()

A pandas transformation method that runs a custom function along an axis (down columns with axis=0axis=0 or across rows with axis=1axis=1), passing a full Series per call.

20
New cards

dtype

The NumPy attribute defining the single, fixed-size data type (such as int64 or float64) shared by every element in a homogeneous array.

21
New cards

Type Promotion

The automatic upcasting rule in NumPy that coerces all elements to the most general data type when an array is initialized with mixed input types.

22
New cards

Array View

A slice of an existing NumPy array that shares the original array's memory block without copying, causing modifications to the slice to alter the original data.

23
New cards

Broadcasting

NumPy's rule for performing element-by-element operations on arrays of differing shapes by right-aligning their dimensions and stretching axes of length 11 without copying data.

24
New cards

Delta Degrees of Freedom (ddof)

A divisor parameter (n−ddofn - \text{ddof}) used in calculating variance and standard deviation, defaulting to 00 in NumPy (population) and 11 in pandas (sample).

25
New cards

Matrix Multiplication (@)

The linear algebra matrix multiplication operator (np.matmul) that computes the dot product of rows from the first array with columns from the second array.

26
New cards

np.where()

A vectorized NumPy function that evaluates an array condition and selects elements from either an if-true or if-false operand at each position without a Python loop.

27
New cards

np.select()

A NumPy function that accepts an ordered list of conditions and choices, returning the choice associated with the first condition that evaluates to True for each element.

28
New cards

Positional Alignment Trap

A common workflow error that occurs when assigning a NumPy array into a DataFrame, where values are mapped strictly by row position rather than matching index labels.

29
New cards

NaN Semantics Trap

The discrepancy where pandas aggregation methods skip missing values by default, whereas standard NumPy reductions propagate NaN to yield a NaN result unless nan-aware functions are used.

30
New cards

Bimodal Distribution

A frequency distribution featuring two distinct peaks separated by a trough, typically indicating that two distinct sub-populations have been pooled together.

31
New cards

Density Plot (KDE)

A visualization that estimates the probability density function of a continuous numeric variable, presenting a smoothed distribution curve without bin divisions.

32
New cards

Simpson's Paradox

A statistical phenomenon in which an observed trend or correlation across an aggregated dataset reverses direction when the data is disaggregated into individual groups.

33
New cards

Diverging Colormap

A color palette with distinct, saturated hues at both extreme ends and a pale color at the center, designed for variables with a meaningful midpoint such as zero.

34
New cards

Sequential Colormap

A color palette that transitions smoothly from light to dark in a single direction, suitable for numeric quantities that start at zero and lack a natural midpoint.