How to read $ character while reading a csv using pandas dataframe

83 Views Asked by At

I want to ignore the $ sign while reading the csv file . I have used multiple encoding options such as latin-1, utf-8, utf-16, utf-32, ascii, utf-8-sig, unicode_escape, rot_13

Also encoding_errors = 'replace' but nothing seems to work below is a dummy data set which reads the '$' as below. It converts the text in between '$' to bold-italic font.

enter image description here

This is how the original data set looks like

enter image description here

code :

df = pd.read_csv("C:\\Users\\nitin2.bhatt\\Downloads\\CCL\\dummy.csv")
df.head()

please help as I have referred to multiple blogs but couldn't find a solution to this

0

There are 0 best solutions below