I have a pretty simple question, but I'm having trouble achieving what I want. I have a DataFrame that looks like this:
base
[a,b,c]
[c,d,e]
[a,b,h]
I want to remove the second element of every list, so I would get this:
base
[a,c]
[c,e]
[a,h]
I suppose there's an easy way to do this, but it's not that usual to work with lists in DataFrames, so I'm not finding anything.
Thanks in advance.
Edit: The DataFrame is just one column, which is comprised of lists, all of the same length. I need to remove one element, so the length of the list is the same as the number of columns of the DataFrame it will become.