'Why when i am getting u'' in front of column names when reading csv file in python pandas?
i have a csv file in my local and i am reading that csv in using pd.read_csv()
Csv kinda looks like this say name df.csv
# a b c
--------------------
"SS" | 1 | Null
"GG" | 1 | "lk"
"HH" | 2 | "kk"
But when i am read this file in python
df1 = pd.read_csv(r"path/df.csv")
print(df1.columns)
out_put:
Index([u'# a', u' b', u' c', ],dtype='object')
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
