I have a Dataframe as follow. Column "b" of the DataFrame has string value with maximum of 5 numbers. So, I want to consider the missing values in the rows which they has less than 5 numbers. For example, the second rows has 2 numbers, I fill the row with mean of 4 and 6. And also for the third row, I want the same thing.
import pandas as pd
df = pd.DataFrame()
df['a'] = [ 1, 2, 3 ]
df['b'] = [ '2, 3, 4, 5,6' , '4,6', ' 6,8']
I here is the DataFrame which I want.

