Quantcast
Channel: Data Science, Analytics and Big Data discussions - Latest topics
Viewing all articles
Browse latest Browse all 4448

Error in Final Submission of csv file and code

$
0
0

While trying to submit, I keep on getting this error

Can anyone help?
I haven’t used csv conversion before. This is the code I used for conversion-
ip=pd.DataFrame(data={“id”:sv,“target”:pred})
ip.to_csv(path_or_buf="/Users/Anusuya/Downloads/Final.csv",index=False,quoting=3)

ds=pd.read_csv("/Users/Anusuya/Downloads/Final.csv")
ds[‘target’].replace(0, ‘No’,inplace=True)
ds[‘target’].replace(1, ‘Yes’,inplace=True)
ds.to_csv("/Users/Anusuya/Downloads/Final.csv", index=False)

where- id=Loan_ID
label=predictions

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 4448

Trending Articles