python - 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},
},
)
解决方案
推荐阅读
- python-2.7 - Q. 从 Python 中的另一个函数终止一个函数中调用的进程
- android - OpenCV 捕获的图像分辨率与 Fotoapparat
- python - 将字典写入txt文件,有什么方法可以格式化吗?
- node.js - 获取 RangeError:Protractor Typescript 自动化框架超过了最大调用堆栈大小
- elasticsearch - Hibernate Elasticsearch 搜索类型 dfs_query_then_fetch
- php - SQLSTATE [HY000]:一般错误:1030 得到错误 168
- angular - Angular Material 仅适用于 Angular Flex 布局?
- sql-server - SQL Server - 将两列值合二为一
- python - AttributeError: '对象没有属性'
- reactjs - 如何在渲染文本元素之前设置文本字体?