Data conversion problem

sr, I got the output for the given test case but I don’t know how to convert the data into CSV file and how to upload it plz provide some hint

Use this function of pandas library

pandas.DataFrame(YOUR_NUMPY_ARRAY).to_csv(“FILE_NAME.CSV”,index = True/False,header = list_of_column_headings)

For more information go through the documentation of “to_csv” function of pandas library

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.