QuestionQ224

VerifiedUsing Spark SQL

A data analyst at an e-commerce company must process daily sales data. The dataset contains approximately 50,000 records in one CSV file, totaling about 20 MB. The analyst needs to run aggregations and produce a summary report.

Which approach could the data analyst use in this situation?

Explanation

A local Python script using pandas is appropriate for a 20 MB CSV with roughly 50,000 records. Pandas can efficiently load the file, perform aggregations, and generate a summary report on a single machine, without the infrastructure and operational overhead of streaming or distributed-processing platforms.

Community Discussion

No comments yet. Be the first to start the discussion!