@shubham.jain wrote:
Hello.
I was solving big mart sales problem from Analytics Vidhya. Here, one of the feature 'Item_Visibility' has distribution has shown below.I tried using the code:
from scipy.stats import boxcox
train['Item_Visibility'] = boxcox(train['Item_Visibility'])But it produced an error "ValueError: Length of values does not match length of index"
So how can i use box-cox transformation in python to transform this to a normal distribution?
Thanks
Shubham
Posts: 1
Participants: 1
