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
DataFrame
s 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 aDataFrame
.
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)?