我正在做一个数据质量项目。我正在尝试使用pandas分析profileReport生成一个数据质量报告,但是当我验证该报告时,它显示我没有缺失值,而我确实有空单元格。或者你还有其他的建议吗?Result
df = pd.read_excel('D:/SDAD/PFE/bi_bpcustomer.xls') print(df.dtypes) reportCl=ProfileReport(df) reportCl.to_file(output_file='rapportClient.html')
下面是我的xls文件的一部分,显示缺少的单元格:xls file
发布于 2021-04-07 02:35:06
这很好,我找到了一种方法,将以下代码添加到我的代码中:
missing_values = [""," "] client= pd.read_excel('D:/SDAD/PFE/bi_bpcustomer.xls',na_values = missing_values)
https://stackoverflow.com/questions/66966682
相似问题