Deck 9: Cross-Reference - How This Connects Forward

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/6

encourage image

There's no tags or description

Looks like no tags are added yet.

Last updated 9:58 PM on 8/10/26
Name
Mastery
Learn
Test
Matching
Spaced
Call with Kai
Chat

No analytics yet

Send a link to your students to track their progress

7 Terms

1
New cards

NumPy's data[rows, columns] indexing corresponds to what pattern in pandas/AnnData?

adata[cells, genes] and df.iloc[rows, cols]

2
New cards

NumPy's .shape corresponds to what in pandas/AnnData?

df.shape and adata.shape

3
New cards

NumPy's np.mean(data, axis=...) corresponds to what in pandas?

df['col'].mean() and groupby aggregations

4
New cards

Plain Python's if cond1 and cond2 corresponds to what in pandas?

df[(cond1) & (cond2)] — note pandas uses &/|, not and/or

5
New cards

The "loop + append" pattern is often replaced by what in pandas?

.apply() or vectorized pandas operations

6
New cards

A Python function like def func(x, default=4) corresponds to what kind of pattern in libraries like scanpy?

Library functions with default arguments, e.g. sc.pp.filter_cells(adata, min_genes=200)

7
New cards

Reading IndexError bottom-up carries over to reading what errors in pandas?

KeyError and ValueError, using the same bottom-up approach