Skip to player
Skip to main content
Skip to footer
Search
Connect
Watch fullscreen
4
Bookmark
Share
Add to Playlist
Report
Pandas Class 04 – How to Import CSV, Excel & JSON Files
Nafees AI Lab
Follow
5/26/2025
Learn how to load data into Pandas from various file formats including CSV and Excel.
#ImportData #PythonCSV #Pandas
Category
📚
Learning
Transcript
Display full video transcript
00:00
Guys, in this lecture, we will describe the data.
00:02
There is an important parameter that we call attributes.
00:07
We use attributes to describe the data.
00:11
Now, it is very important that the attributes of the attributes are called function.
00:17
And the attributes of the function and the attributes we know here.
00:21
First of all, we note that we have read CSV or to CSV followed with round brackets.
00:29
So, the function of the function is basically with round brackets.
00:34
And when you call the function, you need to manipulate the data.
00:38
However, when you call the attribute, it is not followed by round brackets.
00:43
It is not followed by a simple value.
00:45
Now, let's take a example.
00:47
We have the data on the phone.csv.
00:50
So, if I call the phone.csv and call the types,
00:54
remember that the types.
00:58
This is basically the attributes.
01:01
Because it is not followed by a round bracket.
01:05
So, this is the data type.
01:08
This is the data type.
01:10
So, I will execute it.
01:12
As you see, this is the two columns.
01:14
Memory and SIM card are in type.
01:17
And the other columns are object type.
01:19
Again, this is the data type.
01:24
So again, this is my data.
01:27
DataFrame is in my phone.
01:28
So I will execute my data.
01:33
As you see, we have columns.
01:36
Basically, we have value.
01:40
We can assign this variable.
01:43
So I will execute this.columns.
01:49
Execute.
01:51
If I have columns,
01:58
I will display it.
01:59
At the moment,
02:01
if you have seen columns,
02:04
this is very useful feature.
02:06
If you are looking at this,
02:08
you will see how important it is.
02:10
Now, here we go.
02:12
Here we go.
02:14
Basically, index information.
02:16
This is a very useful feature.
02:18
This is the value.
02:21
It's dataframe.
02:23
I will use index.
02:27
You see,
02:29
index information.
02:31
Zero from start,
02:32
10 from stop.
02:33
Step size.
02:34
If you want to use statistics information,
02:37
information.
02:38
If you want to add data to this data, then simply describe the function of this function.
02:42
Here we go, copy, control, c, control, v, dot, d, e, s, c, r, i, b, e, describe, but
02:47
this method is a method.
02:50
Sorry, this function is a function.
02:53
So now you have to describe the function of this function.
02:57
This function has only two columns, which data type int, and they have statistical information
03:06
to count, mean, standard, minimum value, maximum value, and percentile values.
03:13
This is a question that when we talk about price, we talk about the integer.
03:22
However, price is followed by a dollar sign.
03:26
And so on.
03:27
And so on.
03:28
And so on.
03:29
And so on.
03:30
And so on.
03:31
And so on.
03:32
And so on.
03:33
And so on.
03:34
So on.
03:35
We have two things about values and attributes.
03:38
We use this definition.
03:39
Now here I have to write on the thing on the dependency.
03:41
We use this order for an identity.
03:42
So to say that there is an object.
03:43
If it doesn't allow any value.
03:44
And so on.
03:46
And so on.
03:47
And so on.
03:48
And so on.
03:50
And so on.
03:52
And so on.
03:53
And so on.
03:54
And so on.
03:55
And so on.
03:56
So on.
03:57
And so on.
03:59
We can combine a simple method in a simple method.
04:03
That is info.
04:05
I will say that we can put it in a simple method.
04:07
I will say that .info method.
04:09
And then execute.
04:11
As you guessed,
04:13
I will say that we have got the spelling of the method.
04:16
Now, look at that.
04:18
We can do not only data type,
04:20
we can do the column,
04:21
we can do the indexing,
04:23
and much more information.
04:25
This is very cool.
04:27
Mean values can be calculate.
04:30
Again,
04:31
we have data frame.
04:33
I will say .mean function call.
04:36
Sorry, means.
04:37
This is mean.
04:38
I will execute.
04:39
This is only int columns of mean values.
04:44
Int columns of mean values are displayed.
04:47
Now,
04:48
if you have a hypothetical time series data,
04:53
I will say test is equal to
04:56
pd.series with capital S.
04:59
R.I.E.S.
05:00
And in this series,
05:01
I will generate a series.
05:03
One, two, three.
05:04
Execute.
05:05
Test is equal to
05:06
pd.series with capital S.R.I.E.S.
05:08
This is so cool.
05:09
This is so cool.
05:10
This is so cool.
05:11
Now,
05:12
we can do an important work.
05:13
We can do this.
05:14
This is so cool.
05:15
We can do this.
05:16
We can do this.
05:17
This is so cool.
05:35
This is so cool.
05:36
Now we can do a very important job.
05:38
It is that we can select individual columns.
05:43
Now we can do a very important job.
05:48
Imagine that I want to do a mean,
05:51
but I want to do a same card.
05:55
This is my data frame.
05:59
This is my data frame.
06:01
If I put this data frame,
06:04
then I put square brackets.
06:08
Then I put string in the same card.
06:12
I put it in time.
06:13
So you can select the column.
06:15
So I can select the column.
06:19
I can select the column which I want,
06:21
this type of column.
06:22
I put a column here.
06:23
I now try to select the column.
06:24
Okay.
06:25
If I select the column,
06:28
this column,
06:29
this column inside.
06:30
This column is called.
06:31
here.
06:32
Not just this, but now you can call this function.
06:35
If you can say sum, execute.
06:37
Then you can say sum.
06:39
If you call this sum, you can call this sum.
06:42
Then you can call this sum.
06:44
This is the sum return.
06:47
Is this cool?
06:48
It's very cool.
06:50
Okay.
06:51
Give it a go.
06:53
Try it again.
06:55
Then we will start again.
06:58
Give it a go.
Recommended
12:30
|
Up next
Pandas Class 09: Adding & Removing Data in Pandas
Nafees AI Lab
5/28/2025
11:25
Pandas Class 08: Changing Data in Pandas – Replace & Update
Nafees AI Lab
5/28/2025
6:59
Pandas Class 05: Describing & Summarizing Data in Pandas
Nafees AI Lab
5/26/2025
10:09
Pandas Class 03 – Understanding DataFrames in Pandas
Nafees AI Lab
5/26/2025
3:06
Pandas Class 02 – What is Pandas & Course Overview
Nafees AI Lab
5/26/2025
8:25
Rename all files in a folder with CSV or Excel Column Data with Python
SlideScope
5/29/2024
5:36
Pandas Class 01 – Tools Needed to Start Data Analysis
Nafees AI Lab
5/26/2025
7:03
How to get absolute value using abs() method and pandas
Jit Dutta
4/12/2023
14:15
Pandas Class 07: More on Data Selection 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
10:08
Pandas Class 10: Manipulating Data – Sorting, Renaming & More
Nafees AI Lab
5/28/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
0:40
Stephen Hawking’s Life in 60 Seconds: From Wheelchair to the Universe
Nafees AI Lab
6/1/2025