字符串
吴钢
这个作者很懒,什么都没留下…
展开
-
could not convert string to float解决savetxt()数据导出的问题
import numpy as np import pandas as pd from numpy import loadtxt from sklearn.feature_selection import RFECV import seaborn as sns import matplotlib.pyplot as plt import numpy as np from sklear...原创 2018-07-26 12:40:28 · 4759 阅读 · 0 评论 -
TypeError: Mismatch between array dtype (‘object’) and format specifier (‘%.18e’)
Python:np.savetxt报错了~~np.savetxt(‘foo.csv’,uni,delimiter=’,’)报错信息: TypeError: Mismatch between array dtype (‘object’) and format specifier (‘%.18e’)对格式进行指定就好了np.savetxt(‘foo.csv’,uni,delimite...原创 2018-07-26 13:05:12 · 26189 阅读 · 3 评论