{"action":"created","issue":{"url":"https://api.github.com/repos/statsmodels/statsmodels/issues/2676","labels_url":"https://api.github.com/repos/statsmodels/statsmodels/issues/2676/labels{/name}","comments_url":"https://api.github.com/repos/statsmodels/statsmodels/issues/2676/comments","events_url":"https://api.github.com/repos/statsmodels/statsmodels/issues/2676/events","html_url":"https://github.com/statsmodels/statsmodels/issues/2676","id":113151198,"number":2676,"title":"issue with patsy 0.4.0  package in example `examples/notebooks/predict.ipynb` ?","user":{"login":"stonebig","id":4312421,"avatar_url":"https://avatars.githubusercontent.com/u/4312421?v=3","gravatar_id":"","url":"https://api.github.com/users/stonebig","html_url":"https://github.com/stonebig","followers_url":"https://api.github.com/users/stonebig/followers","following_url":"https://api.github.com/users/stonebig/following{/other_user}","gists_url":"https://api.github.com/users/stonebig/gists{/gist_id}","starred_url":"https://api.github.com/users/stonebig/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stonebig/subscriptions","organizations_url":"https://api.github.com/users/stonebig/orgs","repos_url":"https://api.github.com/users/stonebig/repos","events_url":"https://api.github.com/users/stonebig/events{/privacy}","received_events_url":"https://api.github.com/users/stonebig/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/statsmodels/statsmodels/labels/comp-docs","name":"comp-docs","color":"ededed"},{"url":"https://api.github.com/repos/statsmodels/statsmodels/labels/prio-high","name":"prio-high","color":"e10c02"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-24T11:03:24Z","updated_at":"2015-11-15T13:37:17Z","closed_at":null,"body":"I get an error at the 7th cell:\r\n````\r\nfrom statsmodels.formula.api import ols\r\ndata = {\"x1\" : x1, \"y\" : y}\r\nres = ols(\"y ~ x1 + np.sin(x1) + I((x1-5)**2)\", data=data).fit()\r\n````\r\n \r\n````\r\nD:\\WinPython\\basedir27\\build\\winpython-2.7.10.amd64\\python-2.7.10.amd64\\lib\\site-packages\\patsy\\design_info.pyc in __init__(self, factor, type, state, num_columns, categories)\r\n     86         if self.type == \"numerical\":\r\n     87             if not isinstance(num_columns, int):\r\n---> 88                 raise ValueError(\"For numerical factors, num_columns \"\r\n     89                                  \"must be an int\")\r\n     90             if categories is not None:\r\n\r\nValueError: For numerical factors, num_columns must be an int\r\n````"},"comment":{"url":"https://api.github.com/repos/statsmodels/statsmodels/issues/comments/156812476","html_url":"https://github.com/statsmodels/statsmodels/issues/2676#issuecomment-156812476","issue_url":"https://api.github.com/repos/statsmodels/statsmodels/issues/2676","id":156812476,"user":{"login":"huashuai","id":256761,"avatar_url":"https://avatars.githubusercontent.com/u/256761?v=3","gravatar_id":"","url":"https://api.github.com/users/huashuai","html_url":"https://github.com/huashuai","followers_url":"https://api.github.com/users/huashuai/followers","following_url":"https://api.github.com/users/huashuai/following{/other_user}","gists_url":"https://api.github.com/users/huashuai/gists{/gist_id}","starred_url":"https://api.github.com/users/huashuai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huashuai/subscriptions","organizations_url":"https://api.github.com/users/huashuai/orgs","repos_url":"https://api.github.com/users/huashuai/repos","events_url":"https://api.github.com/users/huashuai/events{/privacy}","received_events_url":"https://api.github.com/users/huashuai/received_events","type":"User","site_admin":false},"created_at":"2015-11-15T13:37:17Z","updated_at":"2015-11-15T13:37:17Z","body":"I couldn't reproduce this with patsy 0.4.1, and pasty already updates to check again six.integer_types instead of just int."}}