Pandas Package Lecture Notes

0.0(0)
studied byStudied by 0 people
learnLearn
examPractice Test
spaced repetitionSpaced Repetition
heart puzzleMatch
flashcardsFlashcards
Card Sorting

1/15

flashcard set

Earn XP

Description and Tags

A set of flashcards covering key concepts, definitions, and commands related to the Pandas package in Python.

Study Analytics
Name
Mastery
Learn
Test
Matching
Spaced

No study sessions yet.

16 Terms

1
New cards

Pandas

A powerful open-source Python library built on top of NumPy that provides data analysis features.

2
New cards

Series

A one-dimensional array-like object in pandas that contains an array of data with associated indexes.

3
New cards

DataFrame

A two-dimensional data structure in pandas that consists of rows and columns.

4
New cards

pip install pandas

The command to install the pandas package in Python.

5
New cards

Indexing in Series

Accessing elements by their index in a pandas Series, similar to a numpy array.

6
New cards

iloc

A method used to select elements in a DataFrame or Series by row and column integer indices.

7
New cards

loc

A method used to select elements in a DataFrame or Series by row indices or column labels.

8
New cards

NaN

Denotes a missing value in a pandas Series.

9
New cards

Common data types in DataFrame

Typically includes integer, float, or string for different columns.

10
New cards

Comparison operators

Symbols used to compare two values, such as ==, !=, >, >=, <, and <=.

11
New cards

Logical operators

Used to combine conditions, includes &, |, and ~.

12
New cards

Subsetting Data

Choosing specific rows and columns from a DataFrame based on conditions.

13
New cards

Shape of DataFrame

Represents the dimensions of a DataFrame in terms of rows and columns.

14
New cards

Mathematical operations in Pandas

Operations performed on pandas Series such as addition, subtraction, multiplication, and division.

15
New cards

Creating Series

The method of creating a pandas Series using pd.Series() with data and index.

16
New cards

Printable DataFrame

Creating a DataFrame object and displaying its contents using print().