Python cannot do a non-empty take from an empty axes
Код:
quant_df = train_df.copy()
for col in quant_df.columns:
quant_df = quant_df[quant_df[col] < np.quantile(quant_df[col].dropna(), 0.95)]
Данные:
Код:
quant_df = train_df.copy()
for col in quant_df.columns:
quant_df = quant_df[quant_df[col] < np.quantile(quant_df[col].dropna(), 0.95)]
Данные: