Skip to main content
edited title
Link
jscs
  • 64k
  • 17
  • 134
  • 146

Please help me improve my canonical post about dynamic evaluation in pandas

Source Link
cs95
  • 401.3k
  • 6
  • 59
  • 85

Please help me improve my canonical post

School's out for Christmas, and I recently found myself with a bit of spare time, so I wanted to find a better way to contribute here.

One of the primary tags I contribute to is the tag. If you are familiar with this tag, you will know there is a serious issue with duplicate questions being asked (and answered) on a daily basis. Some of us are aware this problem has been going out of hand, and have actively been encouraging other users to vote and close such questions. However, the challenge here is that a lot of questions are badly written with unsearchable titles, so it is only natural users would rather spend 3 minutes to re-type the answer than spend 5 minutes to find the duplicate.

We recognised that many questions pertaining to an API, or family of APIs usually have the same, or similar answers (with minor variations) and can be closed as a duplicate of a single parent post that is easily searchable.

Some of us have taken the onus to churn out some solid canonicals to address the lack of searchable duplicates on the site. There are already a few good posts out there, including one on pivoting, one on merging (disclaimer: by me), and one more on concatenation.

Very recently (yesterday), I published a canonical on dynamically evaluating expressions in pandas (similar to numexpr with numpy). The post is

Dynamically evaluate an expression from a formula in Pandas

Dynamic evaluation in pandas is done by a small family of three functions that are very closely related to each other and share many common properties and arguments. However, many of the arguments are not very well documented, or their usage was not fully understood. My goal was to shed some light on these lesser known features using some clear and easy to understand examples in the hope that users would better understand and come to appreciate the power of this API. Further, many of the features and arguments do not make sense unless discussed in the context of other features. This is also why the post is somewhat long.

I have noticed the post has not been nearly as well received as the other canonicals, having received more downvotes than upvotes. I believe the post is technically sound, but technical soundness (or lack thereof) need not be the only reason for downvotes. I would like to take some time to understand where I have gone wrong with this post, how I could better frame the question, and rectify any mistakes in this, and future posts. How can I improve the structure and layout of this post to make it more helpful to future visitors?

Would appreciate your advice on this.