Saturday, July 15, 2017

Published July 15, 2017 by with 26 comments

What Languages Are Most Popular On /r/dataisbeautiful?

https://www.reddit.com/r/dataisbeautiful/ is a subreddit where people make graphs of various things, and I was curious what languages/tools are most popular there so I tried a crude estimation and it worked out reasonably well. Here's the spoilers before I start:


Algorithm

There's a lot of content there, so I can't read through every one. Thus, I need an automated way to get it. Luckily, there's a python package called PRAW that makes it easier to mine data on reddit. For the mining then, I used the following algorithm:
  • Get all posts for a day
  • Filter those posts by [OC] posts as those are most likely to have specified the tools used
  • Filter the comments of those posts by comments made by the post author since those are the ones that might specify the language
  • Search those comments for the list of languages that seem most likely and track which ones are found
  • Repeat for the next day in the list
I also did a few other things (track score of submission, track date of submission, etc.) for additional analyses. This algorithm isn't perfect in that it can miss situations where languages were specified and don't trip my filters (e.g., a typo would kill this) and many posts don't specify languages in the first place. It should work as a pretty good estimator though.

Most used language

First, we need to know how many posts identified languages used. I ran this against the last two years of data, and found that there were 7845 posts flagged [OC], and the algorithm above identified the language(s) used in 4189 of them.

Next, we can do a simple comparison of languages usages vs posts that specified languages, and that's where you get the post at the beginning (% = 100*(posts specifying this language/posts specifying any language)):



Note that the numbers above add up to >100% because some posts specified multiple languages (511 of the 4189 posts with identifiable languages).

And that's the original goal. It's clear that Excel wins by a landslide. I guess it makes sense because almost everyone can use Excel and it's really quick to get plots out. Python dominating MATLAB surprised me at first but makes sense in retrospect since MATLAB is not free and has fewer users (it's just really great for working with data).

Most valuable language

To make it interesting, I wanted to see if any languages predicted more success on reddit. I tried doing that a few different ways. A simple one is to get the average score per post per language:


That looks odd. We can't assume post scores have a normal distribution though, so another test is using medians:



That's a huge disparity between median and average. How weird is the distribution? A histogram with logarithmic bins yields:



That is much clearer to me. One interesting thing is that it spikes up in the 3 to 10 thousand score range, so I'm guessing that's when a post makes it to the front page maybe? An idea then is to look at the score distributions by language:








It's pretty clear from this that excel is more bottom heavy than some of the others. A huge number of posts with a score of 0 used it, and it has very few posts with extremely high scores, especially considering that it is the most popular language/tool for this. It looks like MATLAB and Adobe tools have the highest percentage of high-scoring posts, but they have so few samples it's hard to know. Among the popular languages/tools, Python and R appear to do best.

A final way to answer what languages/tools are most likely to yield a high score is to see what percentage of posts using the language/tool yield a score above 100:



This just reinforces the takeaways from the histograms (it's basically the same information in a different form) and I'll stop there...

Probable biases in this data

I would guess that the following occurred to some degree:
  • some languages are probably more prone to typos...e.g., maybe a lot of people typed 'Tablaeu instead of 'Tableau'...if that's the case, those languages would be undercounted by my crude algorithm
  • a lot of OC posts don't specify the language(s) used and there might be a bias there...I wouldn't be shocked for example if a larger percentage of those actually used Excel or Tableau than something like MATLAB
  • a lot of people probably specify something like 'plotly' as the tool used that would make the actual language used ambiguous even though it definitely wasn't excel in that case
  • I personally submit a lot of posts using MATLAB. I think roughly 10% of the MATLAB posts are mine, and I usually submit low-quality posts that get very few upvotes (I don't think I've ever broken a score of 100 on this subreddit). Thus, I have personally hurt MATLAB's performance.
I'll think about more robust ways to catch all of these and might do this again at some point in the future. As a note, I did the data gathering and plotting in Python, but Excel doesn't have as many top posts so I redid all of the plots using Excel in hopes of breaking the trend.

My code for scanning the posts can be found here: https://github.com/rhamner/dataisbeautiful_languageFrequency


      edit

26 comments:

  1. The primary period of a Data researcher's activity is understanding the issue, gathering pertinent information, getting ready and deciphering the gathered information, model arranging and examination, representation of the demonstrated information, and at last, conveying it in the required condition.ExcelR Data Science Courses

    ReplyDelete
  2. Awesome and interesting article. Great things you've always shared with us. Thanks. Just continue composing this kind of post.
    Ciencia de Datos México

    ReplyDelete
  3. Actually I read it yesterday but I had some thoughts about it and today I wanted to read it again because it is very well written. The Random Blogger

    ReplyDelete
  4. Thank you for sharing such a really admire your post. Your post is great!
    data science course in Hyderabad

    ReplyDelete
  5. Very interesting to read this article.I would like to thank you for the efforts you had made for writing this awesome article. This article inspired me to read more. keep it up.data science courses

    ReplyDelete

  6. It's really nice and meaningful. it's a really cool blog. Linking is a very useful thing.you have really helped lots of people who visit blogs and provide them useful information.
    Digital Marketing Course

    ReplyDelete
  7. I see some amazingly important and kept up to length of your strength searching for in your on the site
    data scientist course in hyderabad

    ReplyDelete
  8. Informative blog post thanks for sharing.
    SEO Training In Hyderabad
    SEO stands for search engine optimization. It is the process of ranking your website at the top of the search results for a particular set of keywords. SEO experts will try to rank a specific page on the top of the search results. SEO can increase your brand’s visibility, thus creating brand awareness.

    ReplyDelete
  9. Your good knowledge and kindness in playing with all the pieces were very useful. I don’t know what I would have done if I had not encountered such a step like this…

    DevOps Training in Hyderabad

    ReplyDelete
  10. Good Post! Thank you so much for sharing this pretty post, it was so good to read and useful to improve my knowledge as updated one, keep blogging…

    DevOps Training in Hyderabad

    ReplyDelete
  11. Thank you for taking the time and sharing this information with us. It was indeed very helpful and insightful while being straight forward and to the point…

    DevOps Training in Hyderabad

    ReplyDelete
  12. Really awesome blog and informative content. Thanks for sharing with us. If you want to become a data scientist, then check out the following link.
    Data Science Course with Placements in Hyderabad

    ReplyDelete
  13. HRMS Software India
    Excellent information you have shared, thanks for taking the time to share with us such a great article. I really appreciate your work.

    ReplyDelete
  14. Wonderful blog found to be very impressive to come across such an awesome blog. I should really appreciate the blogger for the efforts they have put in to develop such an amazing content for all the curious readers who are very keen of being updated across every corner. Ultimately, this is an awesome experience for the readers. Anyways, thanks a lot and keep sharing the content in future too.
    Cloud Telephony Software

    ReplyDelete
  15. I like your blogs. Python is one of the most popular programming language. Python course in Greater Noida is the best place where you can start your career.

    ReplyDelete
  16. This analysis of /r/dataisbeautiful provides some intriguing insights into the most popular and impactful tools for creating data visualizations. It’s not surprising that Excel leads in usage due to its accessibility and ease of use, but the standout performance of Python and R in high-scoring posts shows their strength in more complex, shareable visualizations. The analysis also highlights a significant skew in post scores, suggesting that while Excel may be ubiquitous, tools like MATLAB and Python offer a higher potential for standout posts. This information could guide aspiring data visualizers in choosing their tools based on their goals—whether for ease or for impact. Data science courses in Gurgaon

    ReplyDelete
  17. This is a fantastic analysis! It’s really interesting to see how popular tools like Excel dominate the /r/dataisbeautiful submissions, which aligns with its accessibility and ease of use.
    Data science courses in Visakhapatnam

    ReplyDelete
  18. "This is a well-written post! For those interested in gaining professional data science skills, I suggest looking into the Data science courses in Brighton. The program offers detailed courses designed to equip students with practical knowledge and hands-on experience in data analysis, machine learning, and more."

    ReplyDelete
  19. This is a fascinating analysis of language trends on /r/dataisbeautiful! I love how you combined data mining with thoughtful insights about tool popularity and post success. The comparison between averages and medians adds depth, and the biases section shows your thoroughness. Great work!
    Data science courses in Gujarat





    ReplyDelete
  20. "Fantastic post! If you’re serious about building a career in data science, you should definitely explore the Data Science courses in Kochi. They offer great programs to help you get started."

    ReplyDelete