0

I have a df with a column like this:

col1
["12233","2344","3454"]
["233","43234","3455"]
["1234","2534","34655"]

However, when i run this:

print(df1.applymap(type))

Python tells me the column is not in a list; i get this:

          parent       col1       func_results
0  <class 'str'>  <class 'str'>  <class 'list'>
1  <class 'str'>  <class 'str'>  <class 'list'>

How do i convert each row/cell in 'col1' to a list?

Trenton McKinney
  • 56,955
  • 33
  • 144
  • 158
max
  • 671
  • 5
  • 13

0 Answers0