Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updated to avoid 'PatsyError: model is missing required outcome variables' #15

Closed

Conversation

aenfield
Copy link

As part of working through chapter 11, I hit an error w/ the following text: 'PatsyError: model is missing required outcome variables', from the GoMining function. I saw this error on both OS X and Windows. I was able to fix the error and get the expected output, on both platforms, by adding a call to 'encode', as shown in the commit associated with this pull request. (I found this idea at https://readditing.com/r/pystats/comments/2cn0go, which refers to this Patsy issue: pydata/patsy#34.)

Two other things:

  1. I'm really enjoying the book - thanks for writing it.
  2. This is the first time I've submitted a pull request - I tried to follow instructions and it seems like it's worked as it should, but apologies in advance if I've done something incorrectly. If I can fix something to make it work, just let me know.

@AllenDowney
Copy link
Owner

I made a slightly different change to fix this. Thanks very much for letting me know!

@AllenDowney AllenDowney closed this Mar 4, 2015
@aenfield
Copy link
Author

aenfield commented Mar 5, 2015

Great. Thanks again for all of the work on the book (and your Bayes book too).

Andrew

On Mar 4, 2015, at 8:03 AM, Allen Downey [email protected] wrote:

I made a slightly different change to fix this. Thanks very much for letting me know!


Reply to this email directly or view it on GitHub.

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.

None yet

2 participants