Saving both strings and floats to the same file using np.savetxt?
I am relatively new to Python and would appreciate some guidance on exporting data.
I have parsed some HTML and have np.arrays of strings and floats I would like to save: X
contains a few columns of short strings and Y
contains several columns of float/int arrays, both created using np.hstack
. I want to sav开发者_JAVA技巧e [X,Y]
to the same file to create a data frame I can then import into Stata. Can this be done? Do I need to convert these arrays to other types in order to achieve my goal?
Thanks a lot.
精彩评论