Examples
import numpy as np
import pandas as pd
data = {'c_0': [11, -9, 0, -3, 5], 'c_1': [-4, -7, 8, 12, -5]}
df = pd.DataFrame(data)
df
Clips per column using lower and upper thresholds:
df.clip(-8, 12)
Clips using specific lower and upper thresholds per column element:
t = pd.Series([3, -4, -1, 6, 5])
t
df.clip(t, t + 4, axis=0)