DATAFRAME-It is a two-dimensional object that is useful in representing data in the form of rows and columns. It is similar to a spreadsheet or an SQL table. This is the most commonly used pandas object. Once we store the data into the Dataframe, we can perform various operations that are useful in analyzing and understanding the data\
PROPERTIES OF DATAFRAME
1. A Dataframe has axes (indices)- ➢ Row index (axis=0) ➢ Column index (axes=1)
2. It is similar to a spreadsheet , whose row index is called index and column index is called column name.
3. A Dataframe contains Heterogeneous data.
4. A Dataframe Size is Mutable.
5. A Dataframe Data is Mutable.
A data frame can be created using any of the following
1. Series
2. Lists
3. Dictionary
4. A numpy 2D array
Iteration on Rows and Columns If we want to access record or data from a data frame row wise or column wise then iteration is used. Pandas provide 2 functions to perform iterations
1. iterrows ()
2. iteritems ()
0 Comments
Please do note create link post in comment section