I have a dataframe that, after applying a butter bandpass, looks as follows:
So far I have tried using
newdataframe = signal.detrend(df)
However, this changes the format from a data frame to an array. Is there a way of removing the baseleine from a pandas DataFrame and keep it in this format?