A class for writing Stata binary dta files from array-like objects
| Parameters: | fname : file path or buffer
data : array-like
convert_dates : dict
encoding : str
byteorder : str
|
|---|---|
| Returns: | writer : StataWriter instance
|
Examples
>>> writer = StataWriter('./data_file.dta', data)
>>> writer.write_file()
Or with dates
>>> writer = StataWriter('./date_data_file.dta', date, {2 : 'tw'})
>>> writer.write_file()
Methods
| write_file() |
Attributes
| DTYPE_MAP | |
| MISSING_VALUES | |
| TYPE_MAP | |
| i |