Resampling Hourly Data into Half Hourly in Pandas

I have the following DataFrame called prices: DateTime PriceAmountGBP 0 2022-03-27 23:00:00 202.807890 1 2022-03-28 00:00:00 197.724150 2 2022-03-28 01:00:00 191.615328 3 2022-03-28 02:00:00 188.798436 4 2022-03-28 03:00:00 187.706682 … … … 19 2023-01-24 18:00:00 216.915400 20 2023-01-24 19:00:00 197.050516 21 2023-01-24 20:00:00 168.227992 22 2023-01-24 21:00:00 158.954200 23 2023-01-24 22:00:00 149.039322 I’m trying to… Read More Resampling Hourly Data into Half Hourly in Pandas

Caret rfe() error "there should be the same number of samples in x and y"

I am having difficulties solving the error "there should be the same number of samples in x and y". I notice that others have posted on this site regarding this error, but their solutions have not worked for me. I am attaching an abbreviated version of my dataset here. x_train is here: x_train <- structure(list(laterality… Read More Caret rfe() error "there should be the same number of samples in x and y"