Not getting desired output


please check the code i am not able to get desired output

Hello @CCCB0018,

Please elaborate into what exactly you are looking for in a desired output. Here I have assumed that you are looking for a proper way to convert your prediction to csv. Check here.

in sample submission label consist of words and in my prediction i am geting numeric value how to solve that problem?

Hello @CCCB0018,
Can you please share an image of your output and the desired output. Here, if you have getting numerical values, there must be somewhere within the question that what names encodes what numerical values.

Thanks :slight_smile:

this is the desired output

Uploading…

this is my output

my output

Hello @CCCB0018,

I have changed the code for you, using this, you can get your desired output. Check here

Happy Learning :slight_smile:
Thanks

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.