My dataset has columns like 'city' and 'gender'. SelectKBest crashes on them.

Find answers to your programming questions.
My dataset has columns like 'city' and 'gender'. SelectKBest crashes on them.
I have a few thousand features and RFECV has been running for hours.
I don't know how many features to keep. Also, code I copied from a tutorial uses rfecv.gridscores and now fails with an AttributeError.
I passed a Pipeline to RFE so scaling happens before the model, but RFE complains that the Pipeline has no coef.
I'm using RFE with SVC(kernel='rbf'), KNeighborsClassifier, or MLPClassifier and I get this error.
RFE ran without errors, but how do I see which features it kept and how it ranked the others?
I ran SelectKBest on the full dataset, then did traintestsplit and crossvalscore. The scores look suspiciously good, and the model performs much worse on new da
I picked k=10 at random. Is there a principled way to choose it?