【发布时间】:2022-12-02 11:11:19
【问题描述】:
I have a dataframe as follows :
Ax_ghx By_jkgf YTz8_hjks gh3_hjhd
a 1 2 3 4
b 3 4 5 6
How to remove all the characters after '_' which results in a dataframe as follows :
Ax By YTz8 gh3
a 1 2 3 4
b 3 4 5 6
【问题讨论】: