Try using this instead of the above code.
Changing the square brackets to parenthesis would solve your problem, if you are query is about the syntactical error.
x_train,x_test,y_train,y_test=train_test_split(train_df,test_df,test_size=0.33,random_state=17)
Thanks and Hope this helped you out.