I am trying to generate dummy data with some probability. Let say I want to have dummy data about people by gender. I already prepare this in R and you can see my code line below.
gender = sample(x=c("M","F"), prob = c(.6, .4),size=100,replace=TRUE)
Now I want to prepare the same thing but now in Python in Pandas Data Frame. Can anybody help me how to solve this problem?