Flashcards · Pandas · Free
Pandas flashcards, generated for you.
Example Pandas study cards to learn from right now — then generate a full set from your own notes (plus a practice quiz) and export to Quizlet or Anki. Free, no account needed.
Example Pandas flashcards
What is a pandas Series?
A one-dimensional labeled array with index and values. Similar to a Python dictionary or single column in Excel, where each element has a position (integer or custom label).
What is a pandas DataFrame?
A two-dimensional labeled table with rows and columns. Each column is a Series; it's the primary structure for tabular data analysis, similar to a SQL table or Excel spreadsheet.
How do you filter a DataFrame by a single condition?
Use boolean indexing: df[df['column'] > value]. This returns a new DataFrame containing only rows where the condition is True.
What does .loc do vs .iloc?
.loc uses label-based indexing (row/column names or boolean masks). .iloc uses integer position-based indexing (0, 1, 2, ...). Both support row and column selection.
Explain the difference between .copy() and assignment in pandas.
Assignment (df2 = df1) creates a view/reference—changes to df2 affect df1. .copy() (df2 = df1.copy()) creates an independent copy; changes to df2 don't affect df1.
What does .groupby() do and what comes after it?
.groupby() splits data into groups by one or more columns and returns a GroupBy object. Chain aggregation methods like .sum(), .mean(), .count(), or .agg() to compute statistics per group.
How do you merge two DataFrames?
Use pd.merge(df1, df2, on='key_column', how='inner'). Specify the join type: 'inner', 'left', 'right', or 'outer'. Default is inner join. Use 'on' for matching column names or left_on/right_on if names differ.
What is the purpose of .apply() and how does it work?
.apply() applies a function to each row or column of a DataFrame (axis=0 for columns, axis=1 for rows). Returns a new Series or DataFrame. Enables custom transformations beyond built-in methods.
Explain .pivot_table() and when to use it.
.pivot_table() reshapes data by grouping on index/column dimensions and aggregating values. Use it for cross-tabulation, reporting, and summarizing data by multiple categorical variables with automatic handling of duplicates.
What is method chaining in pandas and why is it useful?
Method chaining links operations sequentially: df.query().groupby().agg().sort_values(). It reduces intermediate variables, improves readability, and enables fluent data transformation pipelines in a single expression.
Make your own Pandas study set
Flashcards for related topics
Studying Pandas to build with AI? MindloomHQ turns it into real skills — structured courses, agent projects, and certificates.
Explore MindloomHQ →