How to make good reproducible pandas examples

Note: The ideas here are pretty generic for Stack Overflow, indeed questions. Disclaimer: Writing a good question is hard. The Good: do include small* example DataFrame, either as runnable code: In [1]: df = pd.DataFrame([[1, 2], [1, 3], [4, 6]], columns=[‘A’, ‘B’]) or make it “copy and pasteable” using pd.read_clipboard(sep=’\s\s+’), you can format the text … Read more

How to make a great R reproducible example

Basically, a minimal reproducible example (MRE) should enable others to exactly reproduce your issue on their machines. A MRE consists of the following items: a minimal dataset, necessary to demonstrate the problem the minimal runnable code necessary to reproduce the error, which can be run on the given dataset all necessary information on the used … Read more

tech