1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
| File "<ipython-input-25-bc18feb551ad>", line 1, in <module>
ch.replace(',','.')
NameError: name 'ch' is not defined
X
Out[23]:
array([[0, '305,54', '305,54', ..., '10,43', '10,6', 24364],
[1, '567,38', '570,52', ..., '10,43', '10,6', 24364],
[2, '19,163', '19,163', ..., '10,43', '10,6', 24364],
...,
[43, '19,78', '19,9', ..., '11,015', '11,155', 9302],
[44, '33,39', '33,39', ..., '11,015', '11,155', 9302],
[45, '3,229', '3,229', ..., '11,015', '11,155', 9302]],
dtype=object)
z = X.replace(',','.')
Traceback (most recent call last): |
Partager