Open saadalim1978 opened 2 months ago
tmp = data.copy()
for var in cont_vars:
# transform the variable - yeo-johsnon tmp[var], param = stats.yeojohnson(data[var])
tmp[cont_vars].hist(bins=30, figsize=(15,15)) plt.show()
BracketError: The algorithm terminated without finding a valid bracket. Consider trying different initial points.
Let's go ahead and analyse the distributions of the variables
after applying a yeo-johnson transformation
temporary copy of the data
tmp = data.copy()
for var in cont_vars:
plot the histograms of the transformed variables
tmp[cont_vars].hist(bins=30, figsize=(15,15)) plt.show()
BracketError: The algorithm terminated without finding a valid bracket. Consider trying different initial points.