How can I extract data from a series with square brackets and calculate the average in python
How can I extract data from a series with square brackets and calculate the average in python Question: I got a series of data like this: [1,3] [1,3] [2,4] [3] [4] Every row contains 1 or 2 values, I need to extract them and calculate the average. The expected outputs are like this: 2 2 …