dartdog

Birmingham, AL

oswco.com

Open Software professional Developing Open SoftWare Co, oswco

1d
awarded Notable Question
1d
comment How to reformat categorical Pandas variables for Sci-kit Learn
does exactly what I want.. Thanks!
1d
accepted How to reformat categorical Pandas variables for Sci-kit Learn
2d
comment How to reformat categorical Pandas variables for Sci-kit Learn
Don't want to force sparsity, it is sparse as I understand the term...?? eg most values will me null/0
2d
comment How to reformat categorical Pandas variables for Sci-kit Learn
oh that look good I'll give it a try in a bit
2d
revised How to reformat categorical Pandas variables for Sci-kit Learn
Added next try
2d
comment How to reformat categorical Pandas variables for Sci-kit Learn
That seemed like the long way around,, but may that is it...
2d
asked How to reformat categorical Pandas variables for Sci-kit Learn
2d
comment Pandas Select DataFrame columns using boolean
many thanks for sticking with it, I edited the answer (and accepted) somewhat to remove the errored parts I feel somewhat better about not being able to figure it out on my own,, seems someone should maybe add this to the Pandas doc...
2d
revised Pandas Select DataFrame columns using boolean
remove wrong part of answer
2d
accepted Pandas Select DataFrame columns using boolean
2d
revised Pandas Select DataFrame columns using boolean
remove wrong part
2d
comment Pandas Select DataFrame columns using boolean
Hooray the last worked! (the prior did not)
2d
comment Pandas Select DataFrame columns using boolean
I get columns: service_j n_0008 n_0021 n_0025 n_0046 n_0058 n_0083.... Which does not reflect columns 'c_327:' nor does it select based on count >300 (the 1st column over c_327 that should satisfy True is c_0337)
2d
comment Pandas Select DataFrame columns using boolean
drive.google.com/file/d/0B8tXXwQWKFsqNk92bFBqdTluR3c/… and this still messes up comb2[comb2.columns[comb2.ix[:,'c_0327':].count()>40]]
2d
comment Pandas Select DataFrame columns using boolean
same result, get everything... fwiw "criteria still shows as above in the question as bools
2d
comment Pandas Select DataFrame columns using boolean
That gives me all columns with no filter at all not even the [:,'c_0327':] selection
2d
comment Pandas Select DataFrame columns using boolean
If I use comb[criteria.index==True] I get Item wrong length 1050 instead of 14644.
2d
comment Pandas Select DataFrame columns using boolean
Thanks again for the quick response, But that gives me all of the [:,'c_0327':] columns not just the True ones....
2d
revised Pandas Select DataFrame columns using boolean
Added info on frame results
1 2 3 4 5