How to Save a Bonsai- Optimizing Forum Queries

Gregory Fortunato
Posted on Mar 22, 2019

Recently, I've been trying my hand at a new hobby: Bonsai, the art of cultivating trees in small pots.  After some initial success in the humid summer months, I soon found myself staring at the wilted leaves of a small dying tree, and, realizing that I might need some help, searched for advice as to how I might revive my poor tree.

Image result for bonsai

A healthy bonsai!

I turned to Bonsai Empire, a large forum with over 6,000 postings to see what fellow enthusiasts have been discussing.  I quickly noticed a large disparity in the number of responses to each post, and decided to scrape the multi-layered forum with a scrapy spider to investigate which topics were getting the most responses.

Scraped data in hand, I took the stems of every word in each post's topic to consider words with the same root (e.g., choose & choosing) as the same word and removed meaningless "stopwords" such as "your" and "is"  to get a list of meaningful topics and their corresponding responses.

Thus, the top ten topics with the most responses are as follows:

STEM TOTAL RESPONSES
bonsai 1324
tree 749
help 620
new 366
junip 282
ficu 239
thi 219
need 218
elm 214
leav 213

This list is, of course, biased towards topics with the most postings, so we look to the average number of responses for better insight, and obtain the following list of topics:

STEM AVERAGE RESPONSES
introduc 83.4
wisconsin 55.0
nonsai 54.0
recommendations 48.0
corkscrew 48.0
challenge 46.0
competit 46.0
halp 44.0
concretec 44.0
aggress 44.0

However, the integer values for Average Responses indicate that these values may be from single posts, so we filter the list for topics that appear in at least two posts, and obtain the list below:

STEM AVERAGE RESPONSES
introduc 83.4
competit 46.0
gnarl 41.5
alps 40.0
walmart 36.25
heaven 33.0
guid 30
fusion 29.75
monster 29.5
pics 29.0

It should be noted that many of the topics above are relatively infrequent, so the avid responses may simply be anomalies.  For the highest likelihood of response, one should write a topic that includes words from the top of both of the total and average response.

About Author

Leave a Comment

No comments found.

View Posts by Categories


Our Recent Popular Posts


View Posts by Tags

#python #trainwithnycdsa 2019 airbnb Alex Baransky alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus API Application artist aws beautiful soup Best Bootcamp Best Data Science 2019 Best Data Science Bootcamp Best Data Science Bootcamp 2020 Best Ranked Big Data Book Launch Book-Signing bootcamp Bootcamp Alumni Bootcamp Prep Bundles California Cancer Research capstone Career Career Day citibike clustering Coding Course Demo Course Report D3.js data Data Analyst data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization Deep Learning Demo Day Discount dplyr employer networking feature engineering Finance Financial Data Science Flask gbm Get Hired ggplot2 googleVis Hadoop higgs boson Hiring hiring partner events Hiring Partners Industry Experts Instructor Blog Instructor Interview Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter lasso regression Lead Data Scienctist Lead Data Scientist leaflet linear regression Logistic Regression machine learning Maps matplotlib Medical Research Meet the team meetup Networking neural network Neural networks New Courses nlp NYC NYC Data Science nyc data science academy NYC Open Data NYCDSA NYCDSA Alumni Online Online Bootcamp Online Training Open Data painter pandas Part-time Portfolio Development prediction Prework Programming PwC python python machine learning python scrapy python web scraping python webscraping Python Workshop R R language R Programming R Shiny r studio R Visualization R Workshop R-bloggers random forest Ranking recommendation recommendation system regression Remote remote data science bootcamp Scrapy scrapy visualization seaborn Selenium sentiment analysis Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau team TensorFlow Testimonial tf-idf Top Data Science Bootcamp twitter visualization web scraping Weekend Course What to expect word cloud word2vec XGBoost yelp