0

I have a list in python3.6 which when i turn into a Dataframe inputs a 'b' in front of the all the strings.

for example:

x=[['a','b','c',1,2,3],['a1','b1','c1',1,2,3]]
df=pd.DataFrame(x)

where df will be:

b'a',b'b',b'c',1,2,3
 b'a1','b'b1','b'c1',1,2,3

any ideas how to create a literal translation from a list to a dataframe

matthewr
  • 192
  • 1
  • 1
  • 13

0 Answers0