I've tried different variations of pop, remove, and del with no success thus far. I'm not finding any documentation that addresses this particular issue. Thanks in advance
listoflists = [['a', 'b', 'c', 'd'],['e','f','g','h']]
series1 = pd.Series(listoflists)
->
0 [a, b, c, d]
1 [e, f, g, h]
dtype: object
I want to remove the last element of each list within the series to get:
0 [a, b, c]
1 [e, f, g]