Skip to player
Skip to main content
Skip to footer
Search
Connect
Watch fullscreen
4
Bookmark
Share
Add to Playlist
Report
Pandas Class 03 – Understanding DataFrames in Pandas
Nafees AI Lab
Follow
5/26/2025
Learn about Pandas DataFrames – the core structure used in almost every data analysis task.
#DataFrame #PandasPython #DataScience
Category
📚
Learning
Transcript
Display full video transcript
00:00
So now we are going to start with coding and coding for the first thing we are going to do with Jupyter Notebook.
00:07
Jupyter Notebook, you know, search bar, we are going to open the Miniconda.
00:12
Now we are going to open the Miniconda.
00:14
Now Jupyter Notebook, we are going to open the Jupyter Notebook.
00:19
So that you can see it.
00:21
Okay, now we are going to locate where our project is going to be.
00:25
We are going to open the Miniconda.
00:30
Now we are going to mention the Miniconda.
00:35
Okay.
00:40
After the, we are going to open the Miniconda.
00:45
So we are going to open the Miniconda.
00:49
The Miniconda is going to open the Miniconda.
00:53
This is VENV file and other ones.
00:54
Now, we have to activate it.
00:57
Activate it.
00:58
We have to activate it.
01:00
Activate it.
01:01
Then we have address it to this VENV.
01:04
This is all the address.
01:06
This is all the address.
01:07
This is all the address.
01:08
This is all the address.
01:09
VENV.
01:10
Enter.
01:11
And kaboom.
01:12
Shaka laaka.
01:13
This is all the environment.
01:15
Our environment is activated.
01:18
I will show you.
01:20
Okay.
01:21
Now, we have Jupyter Notebook on.
01:23
Here we go.
01:25
J-U-P-Y-T-E-R.
01:28
Enter.
01:29
Here we go.
01:30
Here we go.
01:31
Here we go.
01:33
Jupyter Notebook on.
01:35
J-U-P-Y-T-E-R.
01:38
N-O-T-E-B-O.
01:41
We have Jupyter Notebook on.
01:44
I have Jupyter Notebook on.
01:46
And Kaboom shaka laaka.
01:48
We have Jupyter Notebook on.
01:50
We have Jupyter Notebook on.
01:51
Here we go.
01:52
Now we can choose a new file.
01:54
Number 3.
01:55
Select this one.
01:56
We will 성y
02:18
import Pandas as PD
02:26
PD can we do this?
02:28
PD Panda is a name
02:29
so we can execute this
02:30
execute we can do this
02:31
shift and enter
02:34
shift and enter
02:35
this execute
02:36
so we can do this
02:37
so we can do this
02:39
so we can do this
02:41
so we can do this
02:43
one dimensional dataset
02:45
Now, I want to explain this to you in university or school, one dimension, two dimension, three dimension.
02:55
Now, I want to tell you what you see on screen on your screen.
03:06
This is a red dot.
03:08
So, how many dimensions are?
03:10
How many dimensions can you see?
03:14
By the way, this screen's two dimensions.
03:16
One is the length, one is the length, and one is the width.
03:25
I call it x and y.
03:28
This screen is the computer.
03:31
This is the dot.
03:33
How many dimensions can you see?
03:35
This is zero dimension.
03:38
This is the direction of x or y.
03:41
So, this is zero dimension.
03:43
However, if I put this dot and I put it down, then I put it down.
03:48
Then I put it down.
03:50
This is the dimension of y.
03:52
This is the value of y.
03:54
So, y, it is the value of y.
04:01
Now, this is a line.
04:03
These are one dimension.
04:05
So, this is the line.
04:07
Which one is, this is one dimension.
04:09
यह 1 है ठीक है 1 dimension
04:11
अब जब आपने गोर करना है
04:15
यह तो होगी ना 1 dimensional एक line
04:17
अब अगर इस line को
04:19
पकड़के मैं इस तरफ खीचूं
04:21
तो यह ऐसे बन जाएगी ना
04:23
यह ऐसे बन जाएगी
04:25
तो यह क्या बन गया है
04:28
यह एक square बन गया है
04:30
square two dimensional होता है
04:32
ऐसे ही है ना
04:34
अब अगर इस square को पकड़के
04:36
इस पूरी को पूरी line को पकड़के
04:37
आप अपनी तरफ खीचें
04:39
तो यह क्या बन जाएगा
04:40
यह three dimensional box बन जाएगा
04:43
make sense
04:46
तो dimension का concept आपने समझना है
04:48
मैंने आपको space में समझा है
04:50
data के अंदर dimension का concept exist करता है
04:53
जब आपको एक empty series दी जाती है ना
04:58
तो उसको कहते हैं zero dimensional
05:01
जब उसके अंदर single column होता है
05:04
उसको कहते है one dimension
05:05
यूं समझ लिए यह single column है
05:07
जब उसके अंदर दो column होते हैं
05:09
तो उसको कहते है two dimension
05:10
अब two dimension वाले को data frame कहते हैं
05:12
तो यह क्या तस्वीर की तरह नहीं लगए अगर आपको यह देखिए data frame
05:15
ठीक है तो चलिए शुरू करते हैं
05:17
सबसे पहले मैं आपको series के बारे में बताने लगाँ
05:19
series में imagine करें कि
05:21
आपके पास मोबाइल है
05:23
mobile phone ठीक है और mobile phone की खासियत यह है
05:26
कि PD आपके पता है ना आपको PD क्या है
05:28
यह PD उपर import करा है
05:30
मैंने इसको कहा कि यह PD.seri.series
05:33
और इसको एक list देते हैं हम लोग
05:36
ठीक है और list में Samson कह रहा हूँ
05:39
ठीक है और
05:41
iPhone कह रहा हूँ
05:44
PH1 और एक और iPhone दे देते है Nokia
05:47
जिसके नावनिशान ही खतम हो गया
05:49
ठीक है अब आपने जरा गोर करना है
05:51
अगर अब मैं मॉबाइल को यहां पे
05:53
call करता हूँ या execute करता हूँ
05:55
या print करता हूँ
05:56
You see you have your first data series
06:00
This is so cool
06:03
लेकिन
06:05
आपने गोर किया
06:07
कि यह जो basically चीज़ है
06:09
यह one dimensional है
06:10
one dimension
06:14
dimension
06:16
अब जरा आपने गोर किया
06:21
कि यह one dimension है
06:22
क्यों क्योंकि इसमें single column
06:23
representation है data की
06:26
ठीक है यह single column है data
06:28
यह Samsung Nokia इसको देखे हैं
06:30
आप zero one two को ना देखे हैं यह वाले देखे हैं
06:31
वो उसकी index है
06:32
Samsung iPhone Nokia single column
06:35
इसको कहते हैं series
06:37
यह test series
06:40
यह समझ लिए जिस तरह test series होती है
06:42
यह वो वाली series है ठीक है चलेंड़ अब imagine करें के
06:48
we just want to see another one
06:50
तो और series में इसको dimensional कर दो हूँ
06:55
और series में let's say
06:56
हमारे पास let's say
06:57
one dimensional dimensional
07:00
series की एक another example देखने लेगे हैं
07:04
let's call this as bag
07:08
my bag
07:09
ठीक है और my bag
07:11
pd.series
07:12
मैं इसको कह रहा हूँ यह बैग बात सुनों
07:14
तुम्हें मैं कुछ items दे रहा हूँ एक list के अंदर
07:17
जिसमें pen है
07:18
जिसमें paper है
07:21
और जिसके अंदर note book है
07:23
note book
07:24
इसको आप single dimensional data के अंदर convert कर दो
07:28
तो इसको मैं back को call करता हूँ
07:30
shift inter execute करता हूँ
07:32
कबूम
07:32
शाकाला का
07:33
हमारे पास single one dimensional data series आगे
07:35
अब हम ज़रा इसको expand करने लगे है
07:37
two dimensional data series की बात करने लगे है
07:40
अब उसके लिए
07:43
data frame के लिए
07:44
हमें simple
07:46
let's say मैं कहता हूँ
07:48
यह है जी two dimensional data
07:49
two dimensional data
07:54
और उसके बाद मैं कहता हूँ
07:56
let's call this as
07:58
two
07:59
नहीं नहीं इस तरह नहीं रख सकते हैं
08:01
मैं कहता हूँ
08:02
frame
08:04
data frame
08:07
is equal to
08:09
pd.
08:10
data frame
08:13
ठीक अब
08:15
data frame की खासियत यह है कि
08:17
यह एक dictionary लेता है unlike list
08:19
जिस तरह आपने देखा कि
08:20
one series के अंदर हम single list देते हैं
08:23
जो
08:24
data frame है उसके अंदर
08:27
हम एक dictionary देते हैं
08:29
however
08:30
आपने एक चीज गवर करनी है
08:32
वो यह कि data frame को आप
08:35
basically एक list भी as a key value
08:38
key के तोर पे दे सकते हैं
08:39
मिसाल के तोर पे यह देखिए
08:40
मैं कहता हूँ
08:40
यह जो है जी सबसे पहले तो let's say मैं एक key जनने लगा हूँ
08:47
मैं कहता हूँ
08:48
accessories
08:49
नाई मैं इस तरह कहता हूँ
08:52
electronic ठीक है और electronic यह है basically key ठीक है तो मैं इसको convert कर देता हूँ
09:06
एक string के अंदर उसके बाद हमारे पास यहां पर यहां तो हम single data series ऐसे करके डाल सकते हैं
09:14
ऐसे करके ठीक है यह देखिए ऐसे पकड़के यह पिर हम इसको डाल सकते हैं directly इस value को
09:19
तो यह देखिए मैं मुबाइल डाल देता हूँ ठीक है उसके बाद दूसरे में let's say मैं कह देता हूँ
09:25
okay let's say मैं कह देता हूँ items और items को मैं दे देता हूँ back control c और यहां पर back डाल देते हैं ठीक है
09:38
अब जरा मैं data frame को call करता हूँ data frame और execute करते है shift enter as you see
09:46
हमारे पास अब एक two dimensional data frame आगा है जिसके अंदर दो columns आपको नदर आ रहे है तो यहां पर इस lecture को close करते है
09:54
next lecture के अंदर हम यह देखेंगे कि of course एक real world application के अंदर हम by hand तो data नहीं create करे होंगे ना
10:00
तो data case हम यह देखेंगे कि of course एक real world application के अंदर हम by hand तो data नहीं create करे होंगे ना
10:05
तो data किस तरह के से import करना है वह हम next lecture में देखेंगे
10:08
झाल
Recommended
6:59
|
Up next
Pandas Class 05: Describing & Summarizing Data in Pandas
Nafees AI Lab
5/26/2025
3:06
Pandas Class 02 – What is Pandas & Course Overview
Nafees AI Lab
5/26/2025
11:25
Pandas Class 08: Changing Data in Pandas – Replace & Update
Nafees AI Lab
5/28/2025
12:30
Pandas Class 09: Adding & Removing Data in Pandas
Nafees AI Lab
5/28/2025
13:58
Pandas Class 06: Data Selection in Pandas – iloc & loc
Nafees AI Lab
5/28/2025
5:36
Pandas Class 01 – Tools Needed to Start Data Analysis
Nafees AI Lab
5/26/2025
14:15
Pandas Class 07: More on Data Selection in Pandas
Nafees AI Lab
5/28/2025
7:03
How to get absolute value using abs() method and pandas
Jit Dutta
4/12/2023
10:08
Pandas Class 10: Manipulating Data – Sorting, Renaming & More
Nafees AI Lab
5/28/2025
7:00
Pandas Class 04 – How to Import CSV, Excel & JSON Files
Nafees AI Lab
5/26/2025
1:09:36
BASICS OF DATA ANALYTICS WITH PYTHON | VIDEO 01
WA Finance Academy
11/1/2022
6:51
ML Class 02: Tools for Data Science
Nafees AI Lab
5/24/2025
0:55
This is the easy way to remove a tree stump!
MetDaan Creative
8/2/2025
0:17
DIY cotton hack for better pressure🔧
MetDaan Creative
8/1/2025
1:44
Tips and tricks to elevate your day-to-day life!😍
MetDaan Creative
7/28/2025
11:34
Power BI Magic: Easy 30-Day Sales Calculations Made Simple
expertiseexcelerate
7/7/2025
13:41
Discover Power BI Desktop's Hidden Scenario Analysis Secrets!
expertiseexcelerate
7/7/2025
1:33
A Very Beautiful & Amazing Nature Video | Relaxing & Inspiring Moments
Gham-e-Hussain | غمِ حسینؑ
5/4/2025
1:01
How to Build a Two-Story House from Tiny Stones – Amazing Miniature Craft!
Gham-e-Hussain | غمِ حسینؑ
4/22/2025
13:27
Time Intelligence PROBLEMS SOLVED?
expertiseexcelerate
1/7/2025
9:38
Episode 1 – The Curious Boy from Ulm (1879-1895)
Nafees AI Lab
6/8/2025
0:37
Top Fully Funded Scholarships in Germany 2025 🇩🇪 | Apply Now!
Nafees AI Lab
6/3/2025
0:25
The Boy and the Dragon – “A Friend in the Sky”
Nafees AI Lab
6/3/2025
1:03
Why Do Rainbows Appear? 🌈 | Physics in Everyday Life
Nafees AI Lab
6/3/2025
0:28
Albert Einstein: The Genius Who Changed Time
Nafees AI Lab
6/1/2025