What I want to do is write a line of code that resets in the indices on some data frames. I thought I could write something like this
X_train, X_test_, y_train, y_test = train_test_split(X,y)
map(lambda x: x.reset_index(drop=True,inplace=True),
[X_train, X_test_, y_train, y_test])
But it doesn't have the desired result. Suggestions?