Hi numpy users,
*Is there a convenient way in numpy to go from "string" features like:*
"uc_berkeley", "google", 1
"stanford", "intel", 1
.
.
.
"uiuc", "texas_instruments", 0
*to a numpy matrix like:*
"uc_berkeley", "stanford", ..., "uiuc", "google", "intel",
"texas_instruments", "bool"
1 0 ... 0 1 0
0 1
0 1 ... 0 0 1
0 1
:
0 0 ... 1 0 0
1 0
I really appreciate you taking the time to help!
Thanks!
--Dhruv
_______________________________________________
NumPy-Discussion mailing list
[email protected]
http://mail.scipy.org/mailman/listinfo/numpy-discussion