pastebin

Paste Search Dynamic
Recent pastes
sns barplot
  1. import numpy as np
  2. import matplotlib.pyplot as plt
  3. import pandas as pd
  4. import seaborn as sns
  5.  
  6. x_vals=[0,1]
  7. #what is the probablity of x=0? # it is 0.9
  8. #what is the probablity of x=1? # it is .1
  9.  
  10. p=.1
  11. probs=[1-p,p]
  12. sns.barplot(x=x_vals,y=probs)
Parsed in 0.004 seconds