statsmodels.datasets.webuse¶
- statsmodels.datasets.webuse(data, baseurl='https://www.stata-press.com/data/r11/', as_df=True)[source]¶
Download and return an example dataset from Stata.
- Parameters:
- Returns:
- dta
DataFrame
A DataFrame containing the Stata dataset.
- dta
Notes
Make sure baseurl has trailing forward slash. Does not do any error checking in response URLs.
Examples
>>> dta = webuse('auto')