Python Pandas - Data Frame Notes
Python Pandas - Data Frame Notes
Series
Lists
Dictionary
A numpy 2D array
Operations on rows and columns
add, select, delete, rename,Head and Tail functions; Indexing using Labels,
Boolean Indexing;
MAIN POINTS
Modify the Data Frame- We can modify the existing data frame by Adding new row/columns,
change the existing value of Row & Columns, rename the column/row and delete the row/columns.
1. Adding new column in existing DataFrame - Suppose a Existing DataFrame DF is like as
DF
For modify multiple row values, we can do it as-
DF.loc[2:4,:]=200 or DF.at[2:4,:]=200,then Frame will be –like