train = pd.read_csv('train.csv')
cols = ['hour', 'season', 'holiday', 'workingday', 'weather', 'temp',
    'windspeed']
clf = YourClassifiers()
clf.fit(train[cols], train.targets)
print(len(clf.feature_importances_))
print(len(cols))
Python - Scikit find variable importance for categorical variables