处理csv数据集时
报错:
ValueError: Input contains NaN, infinity or a value too large for dtype(‘float32’).
解决办法:
import pandas
df = pandas.read_csv(‘FileName.csv’)
df = df.fillna(df.mean())#df.mean()可换成0或者1,其他数等
详细解决方案
训练数据集报错-NaN,infinity or a value too large for dtype('float32').
热度:62 发布时间:2023-12-29 05:33:46.0
相关解决方案
- 菜鸟的报表有关问题:summary band is too large to fit on page
- 展示服务器端大量数据之效能贴士 Performance Tips for Displaying Large Volume of Data from Server
- 下传文件错误有关问题 | 413 Request Entity Too Large
- 运行该HTML之后,点击全屏按钮,出现异常“large()函数未定义”,百思不得其解
- java.sql.SQLException: ORA-01401: inserted value too large for column,该怎么解决
- :java.sql.SQLException: ORA-01401: inserted value too large for column<<在jsp中>>该如何处理
- 变态有关问题code too large
- 413 Request Entity Too Large nginx/0.7.65上传文件大小受限制,求好手指导!
- ORA-12899: value too large for column,该如何处理
- select中报错ORA-01401: inserted value too large for column,求帮忙,该怎么解决
- 怎么得到表 'large value types out of row' 的当前值?
- 六、编写App
- php.ini 中safe mod关闭 影响哪些函数和参数,至少写6个?
- mysql 报Packet for query is too large 的解决办法
- Kibana7.4.2常见问题之 Request Entity Too Large
- CAPL脚本中常用到的数据类型转换—— 浮点数(Float32)和整型(U32)的转换
- 【Nginx】Failed to load resource: the server responded with a status of 413 (Request Entity Too Large)
- 【枚举】【计算几何】Codeforces1019 D Large Triangle
- VGG-《Very deep convolutional networks for large-scale image recognition》翻译
- VGG-net《Very Deep Convolutional Networks for Large-Scale Image Recognition》
- 论文小结-GCN语义分割(Large Kernel Matters —— Improve Semantic Segmentation by Global Convolutional Network)
- [VGG论文详解](2014)Very Deep Convolutional Networks For Large-Scale Image Recognition
- Pytorch中,读取图像的数据格式(dtype)对模型精度的影响(错误记录)
- ElasticJob启动时报错:Index column size too large. The maximum column size is 767 bytes|Specified key was
- 自适应大邻域搜索(Adaptive Large Neighborhood Search)(二)解决TSP问题
- 自适应大邻域搜索(Adaptive Large Neighborhood Search)(一)概念
- (五十六):Integrating Multimodal Information in Large Pretrained Transformers
- (四十五):VATEX: A Large-Scale, High-Quality Multilingual Dataset for Video-and-Language Research
- SpringBoot 报错java.lang.IllegalArgumentException: Request header is too large
- Kibana启动报错:Data too large, data for [<http_request>] would be [294435648/280.7mb], which is larger t