olha eis o codigo que da erro e to no python 3
import pandas as pd
from collections import Counter
df = pd.read_csv('situacao_do_cliente.csv')
X_df = df[['recencia','frequencia','semanas_de_inscricao']]
Y_df = df['situacao']
Xdummies_df = pd.get_dummies(X_df)
Ydummies_df = Y_df
X = Xdummies_df.values
Y = Ydummies_df.values
porcentagem_de_treino = 0.8
tamanho_de_treino = int(porcentagem_de_treino * len(Y))
treino_dados = X[:tamanho_de_treino]
treino_marcacoes = Y[:tamanho_de_treino]
validacao_dados = X[tamanho_de_treino:]
validacao_marcacoes = Y[tamanho_de_treino:]
from sklearn.multiclass import OneVsRestClassifier
from sklearn.svm import LinearSVC
k = 10
modulo_da_galinha_pintadinha = OneVsRestClassifier(LinearSVC(random_state=0))
from sklearn.cross_validation import cross_val_score
media = cross_val_score(modulo_da_galinha_pintadinha,treino_dados,treino_marcacoes, cv = k)
import numpy as np
med = np.mean(media)
print(med)
o erro é nessa parte
from sklearn.cross_validation import cross_val_score
o depois do import esta dando esse erro
Traceback (most recent call last):
File "C:/Users/User/Documents/guto/programas/escola.py", line 4, in <module>
df = pd.read_csv('situacao_do_cliente.csv')
File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas\io\parsers.py", line 678, in parser_f
return _read(filepath_or_buffer, kwds)
File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas\io\parsers.py", line 440, in _read
parser = TextFileReader(filepath_or_buffer, **kwds)
File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas\io\parsers.py", line 787, in __init__
self._make_engine(self.engine)
File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas\io\parsers.py", line 1014, in _make_engine
self._engine = CParserWrapper(self.f, **self.options)
File "C:\Users\User\AppData\Local\Programs\Python\Python36\lib\site-packages\pandas\io\parsers.py", line 1708, in __init__
self._reader = parsers.TextReader(src, **kwds)
File "pandas\_libs\parsers.pyx", line 384, in pandas._libs.parsers.TextReader.__cinit__
File "pandas\_libs\parsers.pyx", line 695, in pandas._libs.parsers.TextReader._setup_parser_source
FileNotFoundError: File b'situacao_do_cliente.csv' does not exist
pf help