I have the following dataset:
df = pd.DataFrame([['Tree', 1], ['Tree, Hug']], columns=('Tag', 'ticketID'))
What I would like to do now I transform the tag category to a numpy array like this
df = df[['Tag']]
tags = df.values
This however gives me
[['Tree']
['Tree, Hug']]
While I am looking for
[['Tree']
['Tree', 'Hug']]
Any thoughts on how I can get this working?