i'm a beginner with scikit-learn and python, i tried this code that looks very simple using SelectKBest from feature_selection package.
train = pd.read_csv("train.csv")
test = pd.read_csv('test.csv')
train = SelectKBest(chi2, k=120).fit_transform(train)
print train.shape
but i got this error and i really don't know how to fix it !!
TypeError: fit() takes exactly 3 arguments (2 given)
Can u guys please help me fixing that :( ?