Back to marketplace

Intro To Pandas

No description yet. This curated deck is ready for daily study.

Total cards: 24•Content version: v4•Public deck•Updated: 8/1/2026

Card preview (24)

#1
Front (Question)

What is Pandas

Back (Answer)

One of the most common python libraries used by data scientists.

#2
Front (Question)

Why is pandas so popular?

Back (Answer)

Because it can connect to just about any data source, such as SQL database, from web, load from excel and much more

#3
Front (Question)

How is pandas used?

Back (Answer)

Pandas provide easy-to-use data structures and tools for effectively loading, manipulating and exporting in-memory data in python

#4
Front (Question)

Why do data manipulation with pandas?

Back (Answer)

The pandas library helps you explore your data and visually see the structure of your output as you are transforming your data.

#5
Front (Question)

What dataframes work very nicely with python machine learning libraries?

Back (Answer)

Sickit-learn, statsmodels and data visualization libraries( matplotib, seaborn)

#6
Front (Question)

How does having data cleaned in a dataframe help?

Back (Answer)

Let’s you quickly visualize your data or feed it into a machine learning algorithm

#7
Front (Question)

What is tabular?

Back (Answer)

Data presented in columns or tables

#8
Front (Question)

What is Slicing?

Back (Answer)

To access just certain parts of our dataset

#9
Front (Question)

How to use slicing?

Back (Answer)

With square bracketz, single brackets return a panda series and double brackets return dataframe

#10
Front (Question)

Difference between a NumPy array and a pandas Series?

Back (Answer)

The essential difference is how they are indexed

#11
Front (Question)

How to mount data?

Back (Answer)

from google.colab import drive drive.mount(‘/content/drive’)

#12
Front (Question)

How to filter mortgage names from you data?

Back (Answer)

df[ ‘Mortgage Name’ ]

#13
Front (Question)

How to filter valuable mortgage name data?

Back (Answer)

df[’ Mortgage Name’ ].value_counts()

#14
Front (Question)

How to filter out just 30 year mortgages?

Back (Answer)

df[df[ ‘Mortgage Name’ ] == ‘30 Year’s]

#15
Front (Question)

How to combine filters?

Back (Answer)

df = df.loc[mortgage_filter & interest_filter, :] df

#16
Front (Question)

What operator negates a filter?

Back (Answer)

~

#17
Front (Question)

How to rename columns?

Back (Answer)

df = df.rename(columns={‘Starting Balance’: ‘starting_balance’})

#18
Front (Question)

How to delete columns?

Back (Answer)

df = df.drop(columns=[‘new_balnce’]) df.head() Or del df[‘starting_balance’]

#19
Front (Question)

How to check for duplicate rows?

Back (Answer)

df.duplicated() to check for duplicates And to count them use df.duplicated().sum()

#20
Front (Question)

How to remove duplicate rows?

Back (Answer)

df - df.drop_duplicates() df.duplicated().sum()

#21
Front (Question)

How to drop columns

Back (Answer)

df = df.drop(columns=[‘unamed: 0’, ‘passengerId’])

#22
Front (Question)

What is df.nunique()?

Back (Answer)

Tells us how many unique values are in each room, finding relationships between the column value and other data

#23
Front (Question)

What is df.info()?

Back (Answer)

Tells us a lot about our data. Checks columns, rows, data types, and missing values

#24
Front (Question)

How to replace a value or change into a number and type?

Back (Answer)

df.[‘sibsp’] = df[‘sibsp’].replace(‘one, 1) df[‘sibs’] = df[‘sibsp’].astype(int) df.info()