DA5. 牛客网用户没有补全的信息
描述
Python 3 解法, 执行用时: 785ms, 内存消耗: 524288KB, 提交时间: 2022-07-11
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv',sep=',',dtype=object) # 代用isnull判断,后跟条件any方法到条件 print(Nowcoder.isnull().any(axis=0))
Python 3 解法, 执行用时: 794ms, 内存消耗: 524288KB, 提交时间: 2022-07-20
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv',sep=',',dtype=object) print(Nowcoder.isnull().any())
Python 3 解法, 执行用时: 796ms, 内存消耗: 524288KB, 提交时间: 2022-07-18
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv',sep=',',dtype=object) # print(Nowcoder.isnull().any(axis=0)) # any 作为判断条件,判断每列是否有空值 print(Nowcoder.isnull().all())
Python 3 解法, 执行用时: 804ms, 内存消耗: 524288KB, 提交时间: 2022-07-11
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv',sep=',',dtype=object) print(Nowcoder.isnull().all())
Python 3 解法, 执行用时: 806ms, 内存消耗: 524288KB, 提交时间: 2022-07-22
import pandas as pd Nowcoder = pd.read_csv('Nowcoder.csv',sep=',',dtype=object) print(Nowcoder.isnull().any(axis=0))