首页 > 解决方案 > Pandas 分析属性错误:“NoneType”对象没有“替换”属性

问题描述

在熊猫分析中生成报告结构时出现错误:AttributeError: 'NoneType' object has no attribute 'replace' enter image description here

代码:

profile = df.profile_report(
     title="Contacts Critical Attributes Data Profiling",
     correlations={
         "pearson": {"calculate": False},
         "spearman": {"calculate": False},
         "kendall": {"calculate": False},
         "phi_k": {"calculate": False},
         "cramers": {"calculate": False},
     },
 )

标签: pythonpandas

解决方案


推荐阅读