When i put my data to groupby function with the following code
x =x.groupby(['Time', 'Distance'],as_index=True,observed=False).size().reset_index() x.columns=['Time','Distance','Flow'] x.head(3) i get such output:
Time Distance Flow 0 0 5 1 1 0 7 170 2 0 8 10 However, i need to do some smoothing, thus i need the skipped values such as:
Time Distance Flow 0 0 0 0 1 0 1 0 2 0 2 0 3 0 3 0 4 0 4 0 5 0 5 1 etc. In short, i need also the missed grouping values. How can i do this?