PracHub
QuestionsPremiumLearningGuidesCheatsheetNEWCoaches

Quick Overview

This question evaluates proficiency in data manipulation and analysis with Pandas, covering time-window filtering, regional subsetting, deduplication, missing-value handling, aggregation, and visual summarization.

  • Medium
  • TikTok
  • Data Manipulation (SQL/Python)
  • Data Scientist

Analyze and Clean European Ecommerce Sales Data

Company: TikTok

Role: Data Scientist

Category: Data Manipulation (SQL/Python)

Difficulty: Medium

Interview Round: Onsite

sales +----------+-------------+------------+---------+---------+----------------+ | order_id | customer_id | order_date | country | revenue | product_category| +----------+-------------+------------+---------+---------+----------------+ | 1001 | 501 | 2023-08-01 | US | 250.00 | Accessories | | 1002 | 502 | 2023-08-02 | UK | 180.00 | Apparel | | 1003 | 503 | 2023-08-02 | DE | 310.00 | Electronics | | 1004 | 501 | 2023-08-03 | US | 95.00 | Accessories | | 1005 | 504 | 2023-08-04 | CA | 420.00 | Electronics | +----------+-------------+------------+---------+---------+----------------+ ##### Scenario You receive a raw ecommerce sales table exported from multiple regional warehouses and must create a clean dataset for analysts. ##### Question Use Pandas to retrieve all European orders placed in the last 30 days and compute their total revenue. 2. Identify and remove duplicated orders, then explain how you would impute any missing revenue values. 3. Produce summary statistics and two visual insights that highlight sales trends by product_category. ##### Hints Pandas filtering, groupby-agg, isnull, fillna, duplicated, matplotlib/seaborn.

Quick Answer: This question evaluates proficiency in data manipulation and analysis with Pandas, covering time-window filtering, regional subsetting, deduplication, missing-value handling, aggregation, and visual summarization.

Last updated: Mar 29, 2026

Loading coding console...

PracHub

Master your tech interviews with 7,500+ real questions from top companies.

Product

  • Questions
  • Learning Tracks
  • Interview Guides
  • Resources
  • Premium
  • For Universities
  • Student Access

Browse

  • By Company
  • By Role
  • By Category
  • Topic Hubs
  • SQL Questions
  • Compare Platforms
  • Discord Community

Support

  • support@prachub.com
  • (916) 541-4762

Legal

  • Privacy Policy
  • Terms of Service
  • About Us

© 2026 PracHub. All rights reserved.

Related Coding Questions

  • Find high-value crypto users and top-CTR product - TikTok (easy)
  • Write monthly customer and sales SQL queries - TikTok (easy)
  • Find top-paid employee per department - TikTok (easy)
  • Count buggy vs non-buggy by employer - TikTok (Medium)
  • Select max-discount product per category - TikTok (Medium)