Re: Help on error " ValueError: For numerical factors, num_columns must be an int "

2015-12-16 Thread Robert
On Wednesday, December 16, 2015 at 8:57:30 PM UTC-5, Josef Pktd wrote: > On Wednesday, December 16, 2015 at 9:50:35 AM UTC-5, Robert wrote: > > On Wednesday, December 16, 2015 at 6:34:21 AM UTC-5, Mark Lawrence wrote: > > > On 16/12/2015 10:44, Robert wrote: > > > > Hi, > > > > > > > > When I run t

Re: Help on error " ValueError: For numerical factors, num_columns must be an int "

2015-12-16 Thread Josef Pktd
On Wednesday, December 16, 2015 at 9:50:35 AM UTC-5, Robert wrote: > On Wednesday, December 16, 2015 at 6:34:21 AM UTC-5, Mark Lawrence wrote: > > On 16/12/2015 10:44, Robert wrote: > > > Hi, > > > > > > When I run the following code, there is an error: > > > > > > ValueError: For numerical factors

Re: Help on error " ValueError: For numerical factors, num_columns must be an int "

2015-12-16 Thread Robert
On Wednesday, December 16, 2015 at 6:34:21 AM UTC-5, Mark Lawrence wrote: > On 16/12/2015 10:44, Robert wrote: > > Hi, > > > > When I run the following code, there is an error: > > > > ValueError: For numerical factors, num_columns must be an int > > > > > > > > import numpy as np

Re: Help on error " ValueError: For numerical factors, num_columns must be an int "

2015-12-16 Thread Mark Lawrence
On 16/12/2015 10:44, Robert wrote: Hi, When I run the following code, there is an error: ValueError: For numerical factors, num_columns must be an int import numpy as np import pandas as pd from patsy import dmatrices from sklearn.linear_model import LogisticRegression X = [

Re: Help on error " ValueError: For numerical factors, num_columns must be an int "

2015-12-16 Thread Robert
On Wednesday, December 16, 2015 at 5:57:04 AM UTC-5, Robert wrote: > On Wednesday, December 16, 2015 at 5:44:21 AM UTC-5, Robert wrote: > > Hi, > > > > When I run the following code, there is an error: > > > > ValueError: For numerical factors, num_columns must be an int > > > > > > ==

Re: Help on error " ValueError: For numerical factors, num_columns must be an int "

2015-12-16 Thread Robert
On Wednesday, December 16, 2015 at 5:44:21 AM UTC-5, Robert wrote: > Hi, > > When I run the following code, there is an error: > > ValueError: For numerical factors, num_columns must be an int > > > > import numpy as np > import pandas as pd > from patsy import dmatrices > fro

Help on error " ValueError: For numerical factors, num_columns must be an int "

2015-12-16 Thread Robert
Hi, When I run the following code, there is an error: ValueError: For numerical factors, num_columns must be an int import numpy as np import pandas as pd from patsy import dmatrices from sklearn.linear_model import LogisticRegression X = [0.5,0.75,1.0,1.25,1.5,1.75,1.75,2.0,