virtualenv --no-site-packages --distribute -p `which python3` <env_name>or simply
pyvenv <env_name>virtualenv --no-site-packages --distribute -p `which python3` <env_name>or simply
pyvenv <env_name>| import pandas as pd | |
| import numpy as np | |
| from sklearn.feature_extraction import DictVectorizer | |
| def encode_onehot(df, cols): | |
| """ | |
| One-hot encoding is applied to columns specified in a pandas DataFrame. | |
| Modified from: https://gist.github.com/kljensen/5452382 | |