Nguyen Thuan

1

votes
1

answer
950

views

How to fix AttributeError: 'Series' object has no attribute 'to_numpy'

This is my output def load_data(self): ''' Load data from list of paths :return: 3D-array X and 2D-array y ''' X = None y = None df = pd.read_excel('data/Data.xlsx', header=None) for i in range(len(df.columns)): sentences_ = df[i].to_numpy().tolist() label_vec = [0.0 for _ in range(0, self.n_class)]...
Nguyen Thuan