Please don't do this. The pandas
tag is already a mess and actually really difficult to organise. While, in principle, this would be a fantastic feature, it's almost certainly going to result in people becoming more lazy. I know from the Python chat room that people actively avoid the tag already because it's scatter-gun as it is.
The specifics of what you're asking for are actually very unclear but, it seems essentially, that it boils down to facilitating the dumping of datasets to be reproduced.
One point that was raised in the chat room was that there is no reason for pandas
to be special-cased here. I totally agree with that; there's plenty of languages that process data and any implementation would have to be mindful of all of them.
Secondly, it's easy enough to create repeatable data sets. There's nothing stopping people from posting a self-building dataframe to illustrate a problem. A recent example was raised in chat about datetime formatting and I just built my own example to start tackling the problem:
df = pd.DataFrame({'date': ['2012/03/05', '2012/03/04', '04/03/2012', '03/04/2012'],
'format': ['YYYY/MM/DD', 'YYYY/MM/DD', 'DD/MM/YYYY', 'DD/MM/YYYY']})
I'm having to translate words to an example but there was nothing stopping them bringing that example to the table at the start. There is purpose in producing MCVEs because it tends to get rid of the simple cases and makes you think more deeply about the problem. If you find that your MCVE needs to tackle a huge number of distinct cases then the issue is probably upstream.
The emphasis should be on making people think twice about their examples and not just dumping problems.
pd.read_clipboard()
to recreate it locally.