schrodinger.utils.csv_unicode module¶
A wrapper around Python’s csv module that allows it to work with Unicode characters. (Currently, only the writer class is implemented.) The interface is intended to mirror the csv interface. See Python’s csv documentation for an explanation of methods and method arguments.
-
class
schrodinger.utils.csv_unicode.
writer
(csv_file, *args, **kwargs)¶ Bases:
object
A CSV writer that can handle Unicode characters. Files will be written as UTF-8. Output files will start with the UTF8 byte-order marker. This marker causes Excel and LibreOffice to interpret the file as Unicode by default. Without it, the user would have to manually select Unicode in the Import Wizard when opening the file.
-
dialect
¶
-
writerow
(row)¶
-
writerows
(rows)¶
-