Data Frame Creation
Data Frame Creation
CREATION
WHAT IS A
DATA FRAME ?
•A Data frame is a
collection of rows and
columns , it loads into
2D row and column
format
df.isnull( ).sum( )
df.fillna(df.mean())
df.rename(columns={'old_name':'new_name’})
df.reset_index()
Renaming the column
df.rename(columns={'old_name': 'new_name'})
HANDLING CATEGORICAL VALUES
ss= StandardScaler()