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