.
The bar-plots below show that there is a large variation across units regarding maximum number of cycles, and that, as expected, the number of cycles is shorter for the test set than the train set. cyclestrain = train.groupby(‘unit’, as_index=False)[‘cycles’].max() cyclestest = test.groupby(‘unit’,