How to get more focused help #29
onlyphantom
started this conversation in
Tips
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, here are a few tips for improving the quality of help you receive!
1. Export a sample of your data if it's not confidential
To do this in R, you can use
dput()
. For example, I can calldput(df[1:10, ])
and that will deparses thedf
object. You can then copy and paste that output onto GitHub / StackOverlow so whoever is trying to help can directly test and reproduce their result using that sample data before advising you. You can usedput
on any R objects, not just on dataframes!This increases the quality of support you get immensely! For dataframes in pandas, you can export to json or text using
to_json()
2. Copy / paste your terminal output.
Not printscreens. Even for error messages and messages. It's easier to read, it's "searchable" (when somebody knowledgeable on the topic wants to help, she can "search" specifically for an error message in this forum and answer; this cannot be done with a printscreen / screenshot / image), and it's also copy-pastable. You can wrap the output in code fences (```) so they are formatted accordingly.
That's it! Happy learning and wish you the most rewarding, exciting journey on your path to mastery!
Beta Was this translation helpful? Give feedback.
All reactions