lambda pivot table code example
Example: pivot table with lambda
pct_75 = lambda y: np.percentile(y, 75)
pct_75 .__name__ = 'pct_75 '
pct_25 = lambda y: np.percentile(y, 25)
pct_25 .__name__ = 'pct_25'
pct_75 = lambda y: np.percentile(y, 75)
pct_75 .__name__ = 'pct_75 '
pct_25 = lambda y: np.percentile(y, 25)
pct_25 .__name__ = 'pct_25'