Read data from excel file or csv in Custom keyword

Thanks for the quick help …I’m able to write the data in excel .
but facing issue while writing the data in CSV …Can you please help me in getting the solution for this ?