Skip to content

ENH: Better error message on object dtype - #2013

Merged
jseabold merged 2 commits into
statsmodels:masterfrom
jseabold:object-dtype
Sep 26, 2014
Merged

jseabold merged 2 commits into
statsmodels:masterfrom
jseabold:object-dtype

Conversation

@jseabold

Copy link
Copy Markdown
Member

Alternatively, we could just try to cast to float but since we're not systematically handling dtypes I preferred to just fail early and let the user know to check their data.

Closes #880. Should also close #1875.

Can look at fixing #1210 in this PR too.

@josef-pkt

Copy link
Copy Markdown
Member

looks good, I wasn't sure where this check should be added.

(we still have the same problem with auxiliary arrays, other arrays in model.__init__)

@jseabold

Copy link
Copy Markdown
Member Author

I'm going to look at the others with the GEE/New models grouping missing stuff.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.01%) when pulling 00f6558 on jseabold:object-dtype into 7f42939 on statsmodels:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.01%) when pulling 00f6558 on jseabold:object-dtype into 7f42939 on statsmodels:master.

jseabold added a commit that referenced this pull request Sep 26, 2014
ENH: Better error message on object dtype
@jseabold
jseabold merged commit 2e5d13a into statsmodels:master Sep 26, 2014
@jseabold
jseabold deleted the object-dtype branch October 21, 2014 15:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

dtype bug object arrays (raises in clustered standard errors code) DataFrame with bool type not cast correctly.

3 participants