I have a simple CSV with two columns:
Try this:
X_train, X_test, y_train, y_test = train_test_split( df[['ErrorWeek']], df['ErrorCount'], random_state=0)
PS pay attention at additional square brackets: df[['ErrorWeek']]
df[['ErrorWeek']]