Class 12 Informatics Practices Chapter 2|Creating Dataframe -Data Handling in Pandas - I (Code 065)

preview_player
Показать описание

=======================================================
✅ In this video,

✔️ Class: 12th
✔️ Subject: Informatics Practices (Subject Code 065)
✔️ Chapter: Data Handling Using Pandas - I
✔️ Topic Name: Series Creation, Attributes, Methods & Operations (Theory)
✔️ Topics Covered in This Video: Creating Dataframe Using Numpy Array, List of Dictionaries, Dictionary of Lists, Series, Dictionary of Series, Dataframe Syntax and Features
=======================================================
00:00 Introduction: Informatics Practices
01:09 DataFrame
1:01:31 Website Overview
=======================================================

Why study from Magnet Brains?
Magnet Brains is an online education platform that helps gives You NCERT/CBSE curriculum based free full courses from Kindergarten to Class 12th so that you can perform well in any and all exams you give in your academic career.

👉 Contact us 🤑🤑

#2022_23 #2022 #2023

Рекомендации по теме
Комментарии
Автор

DATA FRAME
a Data Frame is a two dimensional labelled data structured like a table in MySQL

It has two index::
A row index and A column index

General index name →index
Coloum name→coloum name

It is mutable( add or delete columns and index in data frame)

Easily change values (data frame --value mutable

Coding me
Row Index -- REPRESENT→index
Columns index --REPRESENT→columns

Creating Of DATA FRAME..
WAYS to CREATE a DATA FRAME
(1) Empty Data Frame creating.
(2) Creating of Data Frame from NDARRAYS.
(3) Creating of Data Frame from LIST OF DICTIONARY.
(4) Creating of Data Frame from DICTIONARY OF LISTS.
(5) Creating of Data Frame from Series.
(6)Creating of Data Frame from DISTIONART OF SERIES.

{1}EMPTY DATA FRAME CREATING
>>>import pandas as pd
>>>DFrameEmpty=pd.DataFrame()
>>>DFrameEmpty

{2}CREATING OF DATA FRAME FROM NDARRAYS
>>>import numpy as np
>>>array1=np.array([10, 20, 30])
>>>array2=np.array([100, 200, 300])
>>>array3=np.array([-10, -20, -30, -40])

>>>DFrame1
Output 0→column index
Row} 0 10
Ind } 1 20
ex } 2 30

>>>DFrame2=pd.DataFrame([array1, array3, array2], columns=['A', 'B', 'C', 'D'])
>>>DFrame2
Output
A B C D
0 10 20 30 NaN
1 -10 -20 -30 -40. 0
2 100 200 300 NaN

{3}CREATING OF DATA FRAME FROM LISTS OF DICTIONARY
>>>Dict1={'a':10, 'b':20}
>>>Dict2={'a':5, 'b':10, 'c':20}
>>>list1=[Dict1, Dict2]

>>>DFrame1
Output
a b c
0 10 20 NaN
1 5 10 20

dndjs
Автор

A big thanks to the channel to provide us with the lectures of IP🙏🙏

snehasaha
Автор

ma'am the code in time- 31:24 u havent defined pd..
corrected code-

import numpy as np
import pandas as pd
array1=np.array([10, 20, 30])
array2=np.array([40, 50, 60])
array3=np.array([70, 80, 90])
df1=pd.DataFrame(array1)
print(df1)

hyperind
Автор

Very very excellent teacher in the world pls study from her

brahmkumarkumawat
Автор

Just want to appreciate you, that you teaches so well! ❤️

Jessicatarak
Автор

Very very excellent teacher in the world pls study from her

1DATA FRAME
a Data Frame is a two dimensional labelled data structured like a table in MySQL

It has two index::
A row index and A column index

General index name →index
Coloum name→coloum name

It is mutable( add or delete columns and index in data frame)

Easily change values (data frame --value mutable

Coding me
Row Index -- REPRESENT→index
Columns index --REPRESENT→columns

Creating Of DATA FRAME..
WAYS to CREATE a DATA FRAME
(1) Empty Data Frame creating.
(2) Creating of Data Frame from NDARRAYS.
(3) Creating of Data Frame from LIST OF DICTIONARY.
(4) Creating of Data Frame from DICTIONARY OF LISTS.
(5) Creating of Data Frame from Series.
(6)Creating of Data Frame from DISTIONART OF SERIES.

{1}EMPTY DATA FRAME CREATING
>>>import pandas as pd
>>>DFrameEmpty=pd.DataFrame()
>>>DFrameEmpty

{2}CREATING OF DATA FRAME FROM NDARRAYS
>>>import numpy as np
>>>array1=np.array([10, 20, 30])
>>>array2=np.array([100, 200, 300])
>>>array3=np.array([-10, -20, -30, -40])

>>>DFrame1
Output 0→column index
Row} 0 10
Ind } 1 20
ex } 2 30

>>>DFrame2=pd.DataFrame([array1, array3, array2], columns=['A', 'B', 'C', 'D'])
>>>DFrame2
Output
A B C D
0 10 20 30 NaN
1 -10 -20 -30 -40. 0
2 100 200 300 NaN

{3}CREATING OF DATA FRAME FROM LISTS OF DICTIONARY
>>>Dict1={'a':10, 'b':20}
>>>Dict2={'a':5, 'b':10, 'c':20}
>>>list1=[Dict1, Dict2]

>>>DFrame1
Output
a b c
0 10 20 NaN
1 5 10 20

anugraghofficial
Автор

Jai ho mam apki bhut achi teacher ho aap bhut jayda

ankit__
Автор

Mam in dictionary of series you had taken indices as row indices not as column indices why

learningbyshivam
welcome to shbcf.ru