Jul-15-2021, 08:14 PM
(This post was last modified: Jul-15-2021, 08:24 PM by Yoriz.
Edit Reason: Added code tags
)
Hi Team,
Am trying to get rid of the b that appears in the column?
Data type of my output:
[b'yxyz'] from Col 2 - 4, tried below
Am trying to get rid of the b that appears in the column?
Data type of my output:
df.info()
Output:Date: Dtype: object
Col 2: Dtype: object
Col 3: Dtype: object
Col 4: Dtype: int16
I want to remove [b''] from output:[b'yxyz'] from Col 2 - 4, tried below
df.replace('b', '') df.replace(r'[^a-z]','',regex=True)Still no luck....can you help me?