Loading...

The Trade Log Aggregator

A medium Python interview practice problem on DataDriven. Write and execute real python code with instant grading.

Domain
Python
Difficulty
medium
Seniority
mid, senior

Problem

The compliance team needs daily trading volume reports broken down by exchange. Given CSV trade log lines (date,process,host,log_message,bytes), extract the exchange name from the process field (the portion before the first underscore) and return two dicts: total bytes per day, and bytes per exchange per day.

Practice This Problem

Solve this Python problem with real code execution. DataDriven runs your Python code in a sandboxed Docker environment and grades it instantly.