Welcome back.
We installed and imported successfully the pandas library.
Now let's move and use it in our notebook.
The main object in pandas is the data frame, a 2D table with rows and columns.
In order to create a simple data frame, start with the name of the variable and the equal sign.
Open the brackets and inside it you notice that it's similar to the dictionary.
We have the key and the value separated by the columns, and we have the key value, key value and key
value pairs.
Okay.
So the first key is name.
The value is an array of strings.
The second key is age.
The value is an integer.
The third key.
The third value of the key city is an array of strings.
The fourth one is grade, and the value is array of integers or list of integers.
It's very simple.
This is how we create the data.
It's similar to dictionary.
Okay, think about it like This again.
Data frame primarily data structure for tabular data like Excel spreadsheets.
One dimensional array like object for single columns.
Data cleaning and transformation.
Those are the key features of Panda.
Okay, so think about it like.
Dictionary.
Now let's use this data frame df which is data frame.
Equals to PD.
PD.
As pd.
So I'm using this library.
And here I am using the data frame in order to pass the dictionary to it again.
PD is the alias of pandas.
The shortcut of the pandas data frame.
This is the pandas main data structure.
A 2D dimensional table with rows and columns data.
This is the input data that will be converted into data frame.
DF the assigning that this assigns that created data frame to a variable called D that would be referenced
later.
So here we are displaying the data frame df.
Let me run this and here we go.
We have this visualization.
This is our table name age city grade 0123.
And those are.
This is very library we're going to use in uh in this course and later in the next courses.
So I like this.
You have many features.
Convert this data frame into an interactive.
You can notice like this.
You can see the distributions time scale and others.
This is a very important library.
You may be use it in your in your projects and your university and others.
Okay.
So clear output.
Run it again and here we go.
This is how we get the table from data.