W3School TIY Editor

  • W3School 在线教程
  • 改变方向
  • 暗黑模式
​x
 
import pandas as pd
​
df = pd.read_csv('data.csv')
​
newdf = df.notnull()
​
print(newdf.to_string())
# 注意:我们使用 to_string() 方法来返回整个 DataFrame。
# 注意:第 17、27、91、118、141 行的 Calories 列包含非数字(Not-a-Number)值。