This is some basic code that I use to write results into a single Excel file:
import numpy_financial as npf
file = csv.writer(file)
as a result - Outcome. When I change the xlsx extension to csv, it opens successfully. I am aware that there is a library called xlsxwriter, but I'm curious as to whether the csv module supports xlsx extensions. Do I have something missing?