Subset Pandas DataFrame | LOC, ILOC Method In Pandas

Опубликовано: 12 Октябрь 2022
на канале: Analytics School
193
8

In this session, we will learn how to extract a subset of a Pandas DataFrame. This is very useful because we often want to perform operations on subsets of our data. There are many different ways of sub-setting a Pandas DataFrame. You may need to select specific columns with all rows. Sometimes, you want to select specific rows with all columns or select rows and columns that meet a specific criterion, etc.

We will learn how to use square bracket notation, loc method and iloc method to extract a subset of a Pandas DataFrame.

Chapters:

00:00 - Introduction
01:21- Load The Superstore Dataset
01:36 - Inspect The Dataset
02:55 - Selection Of A Column/Multiple Columns Using [] Method
07:00 - Difference Between LOC & ILOC Method
08:04 - Selection Of A Column/Multiple Columns Using LOC Method
11:30 - Selection Of A Column/Multiple Columns Using ILOC Method
14:23 - Slicing In Pandas DataFrame Using [], LOC, ILOC Method
22:11 - Indexing In Pandas DataFrame Using [], LOC, ILOC Method

#analyticsschool #dataanalysis #dataanalyst #dataanalytics #pandaspythontutorial #datascience #locmethod #ilocmethod