预处理-如何去除数据中的空值

import pandas as pd
data = pd.read_csv("path1")
# drop records which has null values
data_without_null = data.dropna()
data_without_null.to_csv("path2")

你可能感兴趣的:(ML)