Skip to playerSkip to main contentSkip to footer
  • 5/26/2025
Learn about Pandas DataFrames – the core structure used in almost every data analysis task.
#DataFrame #PandasPython #DataScience

Category

📚
Learning
Transcript
00:00So now we are going to start with coding and coding for the first thing we are going to do with Jupyter Notebook.
00:07Jupyter Notebook, you know, search bar, we are going to open the Miniconda.
00:12Now we are going to open the Miniconda.
00:14Now Jupyter Notebook, we are going to open the Jupyter Notebook.
00:19So that you can see it.
00:21Okay, now we are going to locate where our project is going to be.
00:25We are going to open the Miniconda.
00:30Now we are going to mention the Miniconda.
00:35Okay.
00:40After the, we are going to open the Miniconda.
00:45So we are going to open the Miniconda.
00:49The Miniconda is going to open the Miniconda.
00:53This is VENV file and other ones.
00:54Now, we have to activate it.
00:57Activate it.
00:58We have to activate it.
01:00Activate it.
01:01Then we have address it to this VENV.
01:04This is all the address.
01:06This is all the address.
01:07This is all the address.
01:08This is all the address.
01:09VENV.
01:10Enter.
01:11And kaboom.
01:12Shaka laaka.
01:13This is all the environment.
01:15Our environment is activated.
01:18I will show you.
01:20Okay.
01:21Now, we have Jupyter Notebook on.
01:23Here we go.
01:25J-U-P-Y-T-E-R.
01:28Enter.
01:29Here we go.
01:30Here we go.
01:31Here we go.
01:33Jupyter Notebook on.
01:35J-U-P-Y-T-E-R.
01:38N-O-T-E-B-O.
01:41We have Jupyter Notebook on.
01:44I have Jupyter Notebook on.
01:46And Kaboom shaka laaka.
01:48We have Jupyter Notebook on.
01:50We have Jupyter Notebook on.
01:51Here we go.
01:52Now we can choose a new file.
01:54Number 3.
01:55Select this one.
01:56We will 성y
02:18import Pandas as PD
02:26PD can we do this?
02:28PD Panda is a name
02:29so we can execute this
02:30execute we can do this
02:31shift and enter
02:34shift and enter
02:35this execute
02:36so we can do this
02:37so we can do this
02:39so we can do this
02:41so we can do this
02:43one dimensional dataset
02:45Now, I want to explain this to you in university or school, one dimension, two dimension, three dimension.
02:55Now, I want to tell you what you see on screen on your screen.
03:06This is a red dot.
03:08So, how many dimensions are?
03:10How many dimensions can you see?
03:14By the way, this screen's two dimensions.
03:16One is the length, one is the length, and one is the width.
03:25I call it x and y.
03:28This screen is the computer.
03:31This is the dot.
03:33How many dimensions can you see?
03:35This is zero dimension.
03:38This is the direction of x or y.
03:41So, this is zero dimension.
03:43However, if I put this dot and I put it down, then I put it down.
03:48Then I put it down.
03:50This is the dimension of y.
03:52This is the value of y.
03:54So, y, it is the value of y.
04:01Now, this is a line.
04:03These are one dimension.
04:05So, this is the line.
04:07Which 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:30square two dimensional होता है
04:32ऐसे ही है ना
04:34अब अगर इस square को पकड़के
04:36इस पूरी को पूरी line को पकड़के
04:37आप अपनी तरफ खीचें
04:39तो यह क्या बन जाएगा
04:40यह three dimensional box बन जाएगा
04:43make sense
04:46तो dimension का concept आपने समझना है
04:48मैंने आपको space में समझा है
04:50data के अंदर 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:19series में imagine करें कि
05:21आपके पास मोबाइल है
05:23mobile 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:41iPhone कह रहा हूँ
05:44PH1 और एक और iPhone दे देते है Nokia
05:47जिसके नावनिशान ही खतम हो गया
05:49ठीक है अब आपने जरा गोर करना है
05:51अगर अब मैं मॉबाइल को यहां पे
05:53call करता हूँ या execute करता हूँ
05:55या print करता हूँ
05:56You see you have your first data series
06:00This is so cool
06:03लेकिन
06:05आपने गोर किया
06:07कि यह जो basically चीज़ है
06:09यह one dimensional है
06:10one dimension
06:14dimension
06:16अब जरा आपने गोर किया
06:21कि यह one dimension है
06:22क्यों क्योंकि इसमें single column
06:23representation है data की
06:26ठीक है यह single column है data
06:28यह Samsung Nokia इसको देखे हैं
06:30आप zero one two को ना देखे हैं यह वाले देखे हैं
06:31वो उसकी index है
06:32Samsung iPhone Nokia single column
06:35इसको कहते हैं series
06:37यह test series
06:40यह समझ लिए जिस तरह test series होती है
06:42यह वो वाली series है ठीक है चलेंड़ अब imagine करें के
06:48we just want to see another one
06:50तो और series में इसको dimensional कर दो हूँ
06:55और series में let's say
06:56हमारे पास let's say
06:57one dimensional dimensional
07:00series की एक another example देखने लेगे हैं
07:04let's call this as bag
07:08my bag
07:09ठीक है और my bag
07:11pd.series
07:12मैं इसको कह रहा हूँ यह बैग बात सुनों
07:14तुम्हें मैं कुछ items दे रहा हूँ एक list के अंदर
07:17जिसमें pen है
07:18जिसमें paper है
07:21और जिसके अंदर note book है
07:23note book
07:24इसको आप single dimensional data के अंदर convert कर दो
07:28तो इसको मैं back को call करता हूँ
07:30shift inter execute करता हूँ
07:32कबूम
07:32शाकाला का
07:33हमारे पास single one dimensional data series आगे
07:35अब हम ज़रा इसको expand करने लगे है
07:37two dimensional data series की बात करने लगे है
07:40अब उसके लिए
07:43data frame के लिए
07:44हमें simple
07:46let's say मैं कहता हूँ
07:48यह है जी two dimensional data
07:49two dimensional data
07:54और उसके बाद मैं कहता हूँ
07:56let's call this as
07:58two
07:59नहीं नहीं इस तरह नहीं रख सकते हैं
08:01मैं कहता हूँ
08:02frame
08:04data frame
08:07is equal to
08:09pd.
08:10data frame
08:13ठीक अब
08:15data frame की खासियत यह है कि
08:17यह एक dictionary लेता है unlike list
08:19जिस तरह आपने देखा कि
08:20one series के अंदर हम single list देते हैं
08:23जो
08:24data frame है उसके अंदर
08:27हम एक dictionary देते हैं
08:29however
08:30आपने एक चीज गवर करनी है
08:32वो यह कि data frame को आप
08:35basically एक list भी as a key value
08:38key के तोर पे दे सकते हैं
08:39मिसाल के तोर पे यह देखिए
08:40मैं कहता हूँ
08:40यह जो है जी सबसे पहले तो let's say मैं एक key जनने लगा हूँ
08:47मैं कहता हूँ
08:48accessories
08:49नाई मैं इस तरह कहता हूँ
08:52electronic ठीक है और electronic यह है basically key ठीक है तो मैं इसको convert कर देता हूँ
09:06एक string के अंदर उसके बाद हमारे पास यहां पर यहां तो हम single data series ऐसे करके डाल सकते हैं
09:14ऐसे करके ठीक है यह देखिए ऐसे पकड़के यह पिर हम इसको डाल सकते हैं directly इस value को
09:19तो यह देखिए मैं मुबाइल डाल देता हूँ ठीक है उसके बाद दूसरे में let's say मैं कह देता हूँ
09:25okay 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:54next 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