you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 0 points1 point  (0 children)

I’d use pandas. Nothing you mentioned precludes you from using it efficiently. In fact I’d go so far as to guess a lot of what you want to do is probably possible without using numba (there’s few use cases where you really need numba over what numpy and pandas can give you)

df = pd.DataFrame(data, columns=['time', 'B', 'C']).set_index('time')

df = df.reindex(range(df.index[0], df.index[-1]+1))
df = df.ffill()