Table of Contents
df.groupby('corner').transform('mean')
step by step
df_X .shape, df_X.dropna() .shape
((14069, 11), (9791, 11))
df_X.set_index('UID') .head(2)
VDDCORE UID A_1 43.63 A_2 42.43
df_xlsx.iloc[:, 2:3] .head(2)
corner 0 TT 1 TT
df_X_mean = pd.concat([df_xlsx.iloc[:, 2:3], df_X], axis=1) .groupby('corner').transform('mean')
pd.concat([df_xlsx.iloc[:, 2:3], df_X], axis=1) .groupby('corner').transform('mean').shape
(14069, 10)
pd.concat([df_xlsx.iloc[:, 2:3], df_X], axis=1) .groupby('corner').transform('mean').dropna().shape
(14069, 10)