pandas.DataFrame.to_stata — pandas 0.16.2 documentation (original) (raw)
Parameters:
fname : file path or buffer
Where to save the dta file.
convert_dates : dict
Dictionary mapping column of datetime types to the stata internal format that you want to use for the dates. Options are ‘tc’, ‘td’, ‘tm’, ‘tw’, ‘th’, ‘tq’, ‘ty’. Column can be either a number or a name.
encoding : str
Default is latin-1. Note that Stata does not support unicode.
byteorder : str
Can be “>”, “<”, “little”, or “big”. The default is None which usessys.byteorder