https://drive.google.com/file/d/16NXABUv14wYrFhwB5aJBu8LTeEHj9rP6/view?usp=sharing
Kindly have a look at the code
https://drive.google.com/file/d/16NXABUv14wYrFhwB5aJBu8LTeEHj9rP6/view?usp=sharing
Kindly have a look at the code
Hey @mananaroramail, everything is fine, just use this code to make the csv file,
ans = []
for val in list_ids:
if val in chuck_lore_dic:
ans.append([val,chuck_lore_dic[val]])
pd.DataFrame(ans, columns=['ID',"Jokes"] ).to_csv("answer.csv",index = False)
This will give you 100% accuracy.
Hope this resolved your doubt.
Plz mark the doubt as resolved in my doubts section.
In the new CSV file, some jokes are under " " while others are not.
So this was the only difference.
And for any futher conversions into a CSV file , I should use this line :
pd.DataFrame(ans, columns=[‘ID’,“Jokes”] ).to_csv(“answer.csv”,index = False)
Hey @mananaroramail, the problem was due to the orientation in the file, always prefer,
pd.DataFrame(ans, columns=[‘ID’,“Jokes”] ).to_csv(“answer.csv”,index = False)
Hope this resolved your doubt.
Plz mark the doubt as resolved in my doubts section.
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.