<iframe src="https://www.googletagmanager.com/ns.html?id=GTM-KVGHS6G" height="0" width="0" style="display:none;visibility:hidden"></iframe>

Chewy数据相关面试真题

职位分类
全部
数据相关
计算机科学
人工智能
产品经理
BQ
面试题
全部(2)
SQL(1)
Coding(1)
ML basics(0)
Stats(0)
Product Case(0)
高频题(0)
Other(0)
全部(2)
SQL(1)
Coding(1)
ML basics(0)
Stats(0)
Product Case(0)
高频题(0)
Other(0)
1.SQL Aggregation and List Aggregation
2.Counting Books by Genre from a Nested JSON
1. SQL Aggregation and List Aggregation
Write an SQL query to perform a simple group by count aggregation. Additionally, write another SQL query that uses list aggregation to consolidate the names of the top 3 fulfillment centers with the highest count into a single column.
2. Counting Books by Genre from a Nested JSON
Given a nested JSON structure containing book information with fields such as title, author, year, genre, etc., write a Python script to count the number of books in each genre. You can use dictionary comprehension or json_normalize along with pandas DataFrame groupby and either nunique or count methods.