Merging and removing nans on learning analytics

Home   »   Merging and removing nans on learning analytics

df_merged = df_scores.merge(df_student_info, on='id_student',how="outer")
print(df_merged["score"].isnull().sum())
df_merged.dropna(subset=["score"],inplace=True)
df_merged["score"].isnull().sum()
print(df_merged["score"].isnull().sum())
print(df_merged["studied_credits"].isnull().sum())
df_merged.dropna(subset=["studied_credits"],inplace=True)
df_merged["studied_credits"].isnull().sum()
print(df_merged["studied_credits"].isnull().sum())

Leave a Reply

Your email address will not be published. Required fields are marked *