Convert object column to string #1667
Unanswered
romikforest
asked this question in
Q&A
Replies: 1 comment 4 replies
-
Hi, Can you tell us which version of vaex are you using? Can you perhaps include a brief code example? |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi. I read some excel file with pandas and convert it to vaex after that. That file have columns supposed to be strings but the text some times contains numbers inside. So as a result I have a column of object type with some elements of type strings and other int64. I tried to convert it to strings, but could do it only using apply. Because e.g.
.astype(str)
,.to_string()
don't work (TypeError: to_string(): incompatible function arguments. The following argument types are supported...). Is there a simple and fast way to convert object column to strings?I also managed to read the file correctly using
dtype
argument ofread_excel
. But I've spent some time experimenting with object column conversion and it interests me.{'vaex-core': '4.5.1', 'vaex-hdf5': '0.10.0'}
Beta Was this translation helpful? Give feedback.
All reactions