# Apply a butterworth filter to columns of a large dataframe

I have a large dataframe (7200, 132) and each column is a signal. I want to apply a butterworth filter to each signal, however, I'm not sure how to do this in Python.

When I do it in matlab I can apply the filter to the whole array and it will filter the columns independently, however, I'm not getting the same results when I apply the filter to the whole dataframe in Python... so I assume it's not filtering columns independently.

Here is a sample of the code I am using:

# filter
fs = 240 #sampling frequency
order = 2
fc = 6
cut = fc/0.802