Issue
I want to do line break after slicing by \t. Could you possibly know about this?
columns |
---|
A00\t콜레라\tCholera |
=>
columns |
---|
A00 |
콜레라 |
Cholera |
Solution
You can first split
your column then explode
:
df['column'] = df['column'].str.split("\t")
df.explode("column")
Answered By - Tranbi
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.