ValueError: 'a' must be greater than 0 unless no samples are taken
I was trying to use this same concept for my dataset and got the error in the title. Could anybody help? I also checked the shape of the dataframe which was (56, 11).
The error message is below:
ValueError Traceback (most recent call last)
~/anaconda3/lib/python3.7/site-packages/pandas/core/generic.py in sample(self, n, frac, replace, weights, random_state, axis) 5059 ) 5060 -> 5061 locs = rs.choice(axis_length, size=n, replace=replace, p=weights) 5062 return self.take(locs, axis=axis) 5063
mtrand.pyx in mtrand.RandomState.choice()
ValueError: 'a' must be greater than 0 unless no samples are taken