1# importing pandas module
2import pandas as pd
3# making data frame from csv file
4nba = pd.read_csv("nba.csv")
5
6# replacing na values in college with No college
7nba["College"].fillna("No College", inplace = True)
8# OR
9nba.College.fillna("No College", inplace = True)
10
11print(nba)
1df["newColumName"] = df["originalColumnName"].fillna(df["originalColumnName"].mean())