I'm not entirely sure the root cause yet. It's something to do with the default encoding I think. I'm pretty sure Stata uses iso-8859-1
not cp1252
. Changing this inside pandas.io.maybe_read_encoded_stream
works, but changing the encoding in StataReader breaks something else that I don't have time to debug.
Can someone sanity check me. Does this work on Python 2?
dta = pd.read_stata("http://www.stata-press.com/data/r13/fullauto.dta")
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4