import pandas as pd
df = pd.read_csv('data.csv')
newdf = df.isnull()
print(newdf.to_string())
# 注意:我们使用 to_string() 方法来返回整个 DataFrame。
# 注意:第 17、27、91、118、141 行的 Calories 列包含非数字(Not-a-Number)值。