I have select a string column from a table. Now I want to take all the values and convert to a list of string. I used the following code but it does not work.
top_feature = rf_varimp[['variable']].values.tolist()
top_feature
the output is:
[['mrkd100006'], ['mrkd100005'], ['ccs2376'], ['ccs644'], ['ccs3262']]
what I expect for the output is something like:
['mrkd100006', 'mrkd100005', 'ccs2376', 'ccs644', 'ccs3262']