Fix Box-Cox transformation error by handling float return type in boxcox_llf
Previously, the code assumed that stats.boxcox_llf always returned an array and attempted to subscript it, causing a 'float' object is not subscriptable error. Updated the code to handle cases where a float is returned.
Fix Box-Cox transformation error by handling float return type in boxcox_llf
Previously, the code assumed that
stats.boxcox_llf
always returned an array and attempted to subscript it, causing a'float' object is not subscriptable
error. Updated the code to handle cases where a float is returned.