0

I am trying to assign a variable into a pandas data frame but when I am printing it's giving me an output like this. its with index and definition.

    2    ['segment', 'deviceCategory', 'userType']
Name: Dimensions, dtype: object

is there a way to only get output like this in type list.

['segment', 'deviceCategory', 'userType']

I am just reading and storing into variables.

my_dim = df['Dimensions']
print(my_dim)
2    ['segment', 'deviceCategory', 'userType']
    Name: Dimensions, dtype: object
   

Expected Output:

['segment', 'deviceCategory', 'userType']

there must be a way to do that but not able to find.

DKM
  • 1,761
  • 2
  • 19
  • 34

0 Answers0