I used `dput` in R previously, which would output a statement to recreate any data object in R. I would put this code in Stack Overflow and another user could paste it into R and the data object would be created. 

What's the best way to post a sample dataset for Python on Stack Overflow? Is there a method or package to do this?