5

I think this is slightly different from this meta question:

Quite often I have an amazing piece of functionality that I'm not sure everyone knows about and I can't find any direct reference to it on Stack Overflow.

I'm always tempted to ask a question to which the answer is the top tip I want to share with the world, as follows:

Q: When people post their DataFrames to a SO question, how can I get the data into Python to begin debugging?

In []: df

Out[]: 
       A      B      C
0  False  False  False
1   True  False  False
2  False  False  False

To which my answer would be:

A: If you copy the data to the clipboard, the data library Pandas has function read_clipboard which will load the copied data into a DataFrame.

Should I post this question although I already know (at least one) answer? Should I then immediately answer it myself, or let others take the glory and act surprised and impressed (which makes everyone feel great)?

0

1 Answer 1

6

Yes. We want good questions and answers on here. It is quite possible someone has searched for this, couldn't find anything nut didn't ask as they are not a registered user.

There is even a feature built into SO just for this. When you go to ask a question there is a check mark asking:

Answer your own question – share your knowledge, Q&A-style

If you check that then an answer box comes up and you can answer your own question to spread this wonderful information.

enter image description here

So go ahead and post. If you want to hold off on answering until you get other answers that is your prerogative but remember that SO thrives because of high quality content and if your content can make it better then you should add it.

If you really want to make people fell warm and fuzzy you could always offer a bounty on it as extra incentive.

2
  • Great idea for the bounty. You would have to wait 2 days, but that's still a great plan.
    – ryanyuyu
    Commented Jul 24, 2015 at 12:43
  • Thanks for this advice. You've emboldened me!
    – LondonRob
    Commented Jul 24, 2015 at 12:49

Not the answer you're looking for? Browse other questions tagged .