Closed ptth222 closed 6 months ago
We need a very small discussion on this matter since the functions changed were not open_csv
but simple open()
functions.
@terazus Does "we" include me, or do you mean you guys?
@ptth222 It means whoever wants to participate :) you are warmly welcome to discuss this with us.
@terazus It can include me or not. I took "small discussion" to me like a voice communication meeting, so we would need to coordinate that if I needed to be in there.
Closing, dupe of #547
When writing dataframes using the to_csv method on Windows, blank rows are inserted after every row. There is a decent Stack Overflow post about the issue here: https://stackoverflow.com/questions/56398306/using-pandas-to-write-file-creates-blank-lines. The 2 best fixes are either to open the file in binary mode or don't open the file manually and just pass the filename to the method directly. I went through the package and found instances of "to_csv" usage and changed the opening style to "wb".
I initially only encountered this problem when writing study and assay files, so I know changing to "wb" fixes the issue there, but I did not test the other instances I found.