Re: [Tutor] adding numpy to pandas

2018-06-21 Thread Peter Otten
Mats Wichmann wrote: > On 06/20/2018 02:04 PM, Glenn Schultz wrote: >> All, >> >> I have a pandas dataframe and a predict result (numpy array) of a >> classifier [[0,1],[1,0]]. What I would like to do is as the positive to >> the pandas dataframe. I use predict[:,1] to slice the postive from

Re: [Tutor] adding numpy to pandas

2018-06-21 Thread Mats Wichmann
On 06/20/2018 02:04 PM, Glenn Schultz wrote: > All, > > I have a pandas dataframe and a predict result (numpy array) of a > classifier [[0,1],[1,0]].  What I would like to do is as the positive to > the pandas dataframe.  I use predict[:,1] to slice the postive from > numpy which gives me a row

[Tutor] adding numpy to pandas

2018-06-20 Thread Glenn Schultz
All, I have a pandas dataframe and a predict result (numpy array) of a classifier [[0,1],[1,0]].  What I would like to do is as the positive to the pandas dataframe.  I use predict[:,1] to slice the postive from numpy which gives me a row of the result.  but I cannot concat to the pandas