some python functions and conda related environment

·

1 min read

n = 50
(tokens
 .iloc[:50]
 .plot
 .bar(figsize=(14, 4), title=f'Most frequent {n} of {len(tokens):,d} tokens'))
sns.despine()
plt.tight_layout();

source

train_result.groupby(level='Category').mean().plot.bar(figsize=(14, 5), rot=0);

pd.melt function

w = WordCloud()
#  to find the environment where you are running
import sys
print(sys.executable)

# after create a new enivronment
conda install pip
#to launch jupyter in certain conda
conda install jupyter notebook
jupyter notebook