from sklearn.feature_extraction import FeatureHasher print(f.toarray())