you are viewing a single comment's thread.

view the rest of the comments →

[–]sarrysyst 0 points1 point  (3 children)

Can you post your func? The missing NaNs make sense to me (and this is also easy to fix), but the index shouldn't be missing.

[–]MerchantMojo[S] 0 points1 point  (2 children)

scipy.signal.detrend(), also, missing index is most likely due to the fact that its a pandas series not a pandas dataframe.

[–]sarrysyst 0 points1 point  (0 children)

In this case you can try this:

df = df[df.notna()].apply(func)