Data Analysis of Food Network Recipes

Posted on Feb 17, 2020

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.

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.

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.

The skills the authors demonstrated here can be learned through taking Data Science with Machine Learning bootcamp with NYC Data Science Academy.

About Author

Karoly Lajko

He received his diploma from Stony Brook University in Electrical Engineering. He developed digital circuits for application and microprocessors. He is a strategic leader with years of experience in solving highly complex problems through development and production-related projects.
View all posts by Karoly Lajko >

Leave a Comment

No comments found.

View Posts by Categories


Our Recent Popular Posts


View Posts by Tags

#python #trainwithnycdsa 2019 2020 Revenue 3-points agriculture air quality airbnb airline alcohol Alex Baransky algorithm alumni Alumni Interview Alumni Reviews Alumni Spotlight alumni story Alumnus ames dataset ames housing dataset apartment rent API Application artist aws bank loans 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 boston safety Bundles cake recipe California Cancer Research capstone car price Career Career Day citibike classic cars classpass clustering Coding Course Demo Course Report covid 19 credit credit card crime frequency crops D3.js data data analysis Data Analyst data analytics data for tripadvisor reviews data science Data Science Academy Data Science Bootcamp Data science jobs Data Science Reviews Data Scientist Data Scientist Jobs data visualization database Deep Learning Demo Day Discount disney dplyr drug data e-commerce economy employee employee burnout employer networking environment feature engineering Finance Financial Data Science fitness studio Flask flight delay gbm Get Hired ggplot2 googleVis H20 Hadoop hallmark holiday movie happiness healthcare frauds higgs boson Hiring hiring partner events Hiring Partners hotels housing housing data housing predictions housing price hy-vee Income Industry Experts Injuries Instructor Blog Instructor Interview insurance italki Job Job Placement Jobs Jon Krohn JP Morgan Chase Kaggle Kickstarter las vegas airport lasso regression Lead Data Scienctist Lead Data Scientist leaflet league linear regression Logistic Regression machine learning Maps market matplotlib Medical Research Meet the team meetup methal health miami beach movie music Napoli NBA netflix Networking neural network Neural networks New Courses NHL nlp NYC NYC Data Science nyc data science academy NYC Open Data nyc property NYCDSA NYCDSA Alumni Online Online Bootcamp Online Training Open Data painter pandas Part-time performance phoenix pollutants Portfolio Development precision measurement prediction Prework Programming public safety PwC python Python Data Analysis python machine learning python scrapy python web scraping python webscraping Python Workshop R R Data Analysis 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 seafood type Selenium sentiment analysis sentiment classification Shiny Shiny Dashboard Spark Special Special Summer Sports statistics streaming Student Interview Student Showcase SVM Switchup Tableau teachers team team performance TensorFlow Testimonial tf-idf Top Data Science Bootcamp Top manufacturing companies Transfers tweets twitter videos visualization wallstreet wallstreetbets web scraping Weekend Course What to expect whiskey whiskeyadvocate wildfire word cloud word2vec XGBoost yelp youtube trending ZORI