Examples

In [1]:
import numpy as np
import pandas as pd
In [2]:
df = pd.DataFrame({'animal': ['eagle', 'sparrow', 'eagle',
                              'sparrow'],
                   'speed': [320, 20, 350, 17]})
df.to_stata('animals.dta')  # doctest: +SKIP