I'm currently reading through "Hands-On Machine Learning with Scikit-Learn, Keras, and TensorFlow" and came across this Python code:
X_train_A, X_train_B = X_train[:, :5], X_train[:, 2:]
What does the notation [:, :5] and [:, 2:] represent? I know that it's slice notation, but can't find what this specific operation is doing.