1

I have a dataframe that, after applying a butter bandpass, looks as follows: enter image description here

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?

Niam45
  • 552
  • 2
  • 16

1 Answers1

0

Assign the values back to the dataframe:

df.loc[:] = signal.detrend(df)
zalmane
  • 336
  • 3
  • 5