1/15
A set of flashcards covering key concepts, definitions, and commands related to the Pandas package in Python.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
Pandas
A powerful open-source Python library built on top of NumPy that provides data analysis features.
Series
A one-dimensional array-like object in pandas that contains an array of data with associated indexes.
DataFrame
A two-dimensional data structure in pandas that consists of rows and columns.
pip install pandas
The command to install the pandas package in Python.
Indexing in Series
Accessing elements by their index in a pandas Series, similar to a numpy array.
iloc
A method used to select elements in a DataFrame or Series by row and column integer indices.
loc
A method used to select elements in a DataFrame or Series by row indices or column labels.
NaN
Denotes a missing value in a pandas Series.
Common data types in DataFrame
Typically includes integer, float, or string for different columns.
Comparison operators
Symbols used to compare two values, such as ==, !=, >, >=, <, and <=.
Logical operators
Used to combine conditions, includes &, |, and ~.
Subsetting Data
Choosing specific rows and columns from a DataFrame based on conditions.
Shape of DataFrame
Represents the dimensions of a DataFrame in terms of rows and columns.
Mathematical operations in Pandas
Operations performed on pandas Series such as addition, subtraction, multiplication, and division.
Creating Series
The method of creating a pandas Series using pd.Series() with data and index.
Printable DataFrame
Creating a DataFrame object and displaying its contents using print().