A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/pandas-dev/pandas/issues/7097 below:

df.to_stata doesn't handle boolean columns · Issue #7097 · pandas-dev/pandas · GitHub

I'd expected this to generate a row of 1's and 0's in the dta file...

DataFrame([True, False]).to_stata('test.dta')

But it generates the following error:

sbox/lib/python2.7/site-packages/pandas/io/stata.pyc in _dtype_to_stata_type(dtype)
884 else: # pragma : no cover
885 raise ValueError("Data type %s not currently understood. "
--> 886 "Please report an error to the developers." % dtype)
887
888

ValueError: Data type bool not currently understood. Please report an error to the developers.


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