1/15
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced | Call with Kai | Chat |
|---|
No analytics yet
Send a link to your students to track their progress
On the pandas cheat sheet, row‑selection operations appear under which section?Write the name of the section below
Subset Observations: Rows
Quantitative Data
Data measured numerically (discrete (whole number) & continuous data (decimals))
Qualitative Data
Data describing descriptive categories
Exactly equal to
==
Not Equal To
!=
Strictly less than
<
Strictly Greater Than
>
Less than or equal
<=
Greater than or equal
>=
Exact rows that meet logical criteria
df[df.Length > 7]
Remove duplicate rows (only considers columns)
df.drop_duplicates()
df.sample(frac=0.5)
Randomly select fraction of rows.
Randomly select n rows
df.sample(n=10)
What does it mean to filter a data frame?
When filtering a DataFrame, it selects a subset of rows or columns that is desired to match a certain rule or request
Why must each conditional be enclosed in parentheses when combining them?
Each conditional must be enclosed in parentheses when combining them because like math PEMDAS, programming languages have operator precedence and syntax clarity.