Fun facts on Foodnetwork recipes.

Karoly Lajko
Posted on Feb 17, 2020

Out of many free time activities cooking is one of my favorite one. It is relaxing as it  really turns off the wheels in my head. I focus on the meal fully with engineering detail orientation. Also, the result of the work is a lovely satisfying meal, which I like to share with friends or family. 

That is why I chose collecting recipes and related data from my favorite channel's website foodnetwork.com for my project. I scraped the website with Scrapy and used Selenium for the dynamic content. 

The collected data contained approximately 4000 recipes with rating and comments where it was available. The data included name, cooking time, level of difficulty and ingredients. The cleaning included dealing with missing information, converting text to numerical values. The comment section contained web links, recipes and emojis, therefore I left it out of the analysis this time. 

First, I checked the items with the higher rating. Interestingly, majority of the ratings were rather high. I wondered if all the recipes  tastes really that good. Perhaps, those who did not find the recipe that good simply did not comment at all. See the overall rating chart in form of density curve. 

Next, I reviewed the total preparation time of the recipes. What are is the most frequent preparation time for a recipe?

While converting the text field of hour and minute to numbers I had some troubles with my conversion function. I realized that there are recipes with days of preparation time. I had to check what takes so long to prepare and listed them in a table. Lemon-Lavender pie was the overall winner over 1600 minutes of preparation time. 

I also looked into the serving sizes of recipes. I visualized them in a histogram chart. 

Most serving sizes are between five to ten, yet again my chart has data points up to hundred servings. So, as I did before I wanted to find out what are those outliers. I listed them in a chart below.

I also wanted to find answer to a couple of questions. Does it take a long time to prepare meals with large serving size? From the scatter plot below, one is able to see that there is no correlation between preparation time and preparation of large servings. 

Lastly, but not less importantly let us see if cooks like to prepare and taste complex meals. Do users rate easy meals high or more complex meals with perhaps more flavors. As it turns out, there is not apparent variation in ratings depending on the number of ingredients needed for the recipe. However, this tendency cannot be stated with a high confidence. 

While, this project did not reveal shocking discoveries, it did give some insights into interesting trends that high ratings does not necessarily mean that the recipe is great, that it takes a long time to prepare complex meals or that it is possible to prepare meals for many souls in a short period of time.  

It was a nice practice for a visualizing exercise and hoping to extend my analysis into comments content by applying NLP and how ingredients are relevant to ratings. 

 

About Author

Karoly Lajko

Karoly Lajko

Welcome to my Blog Page! I am Charlie. I received my diploma with honors in Electrical Engineering. I designed digital circuits for application and microprocessors used in tablets and smart phones. Personal and professional growth presented me the...
View all posts by Karoly Lajko >

Leave a Comment

No comments found.

View Posts by Categories


Our Recent Popular Posts


View Posts by Tags

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 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