I have time series data, say:
a = [[0,1,2,3,4],['a','b','c','d','e']]
b = [[0,3,4]['f','g','h']]
and I would like to get a result with some filler value, now say “No”:
a_new = [[0,1,2,3,4],['a','b','c','d','e']]
b_new = [[0,1,2,3,4],['f',None,None,'g','h']]
Is there a built-in function in python / numpy for this (or something like this)? Basically, I would like to have all my vectors of equal size so that I can compute statistics (np.mean) and process the missing data accordingly.